View | Details | Raw Unified | Return to bug 212282 | Differences between
and this patch

Collapse All | Expand All

(-)bareos-server/files/bareos-dir.in (-1 / +16 lines)
Lines 11-16 Link Here
11
#
11
#
12
# bareos_dir_enable  (bool):   Set to NO by default.
12
# bareos_dir_enable  (bool):   Set to NO by default.
13
#                Set it to YES to enable bareos_dir.
13
#                Set it to YES to enable bareos_dir.
14
# bareos_dir_configfile (foo/bar/file.conf): absolute path to bareos-dir
15
#		configuration file
14
# bareos_dir_flags (params):   Set params used to start bareos_dir.
16
# bareos_dir_flags (params):   Set params used to start bareos_dir.
15
#
17
#
16
18
Lines 19-31 Link Here
19
name="bareos_dir"
21
name="bareos_dir"
20
rcvar=${name}_enable
22
rcvar=${name}_enable
21
command=%%PREFIX%%/sbin/bareos-dir
23
command=%%PREFIX%%/sbin/bareos-dir
24
bareos_dir_user="bareos"
25
bareos_dir_group="bareos"
26
bareos_dir_configfile="%%PREFIX%%/etc/bareos/bareos-dir.conf"
27
start_precmd=${name}_prestart
22
28
23
load_rc_config $name
29
load_rc_config $name
24
30
25
: ${bareos_dir_enable="NO"}
31
: ${bareos_dir_enable="NO"}
26
: ${bareos_dir_flags=" -u bareos -g bareos -v -c %%PREFIX%%/etc/bareos/bareos-dir.conf"}
32
: ${bareos_dir_flags=" -u ${bareos_dir_user} -g ${bareos_dir_group} -v -c ${bareos_dir_configfile}"}
27
: ${bareos_dir_pidfile="/var/run/bareos/bareos-dir.9101.pid"}
33
: ${bareos_dir_pidfile="/var/run/bareos/bareos-dir.9101.pid"}
28
34
29
pidfile="${bareos_dir_pidfile}"
35
pidfile="${bareos_dir_pidfile}"
30
36
37
required_files=${bareos_dir_configfile}
38
required_dirs=${pidfile%/*}
39
40
bareos_dir_prestart()
41
{
42
	[ -d "${pidfile%/*}" ] || install -d -o ${bareos_dir_user} -g ${bareos_dir_group} ${pidfile%/*}
43
}
44
45
31
run_rc_command "$1"
46
run_rc_command "$1"
(-)bareos-server/files/bareos-fd.in (-1 / +17 lines)
Lines 11-16 Link Here
11
#
11
#
12
# bareos_fd_enable  (bool):  Set to NO by default.
12
# bareos_fd_enable  (bool):  Set to NO by default.
13
#               Set it to YES to enable bareos_fd.
13
#               Set it to YES to enable bareos_fd.
14
# bareos_sd_configfile (foo/bar/file.conf): absolute path to bareos-fd 
15
#               configuration file
14
# bareos_fd_flags (params):  Set params used to start bareos_fd.
16
# bareos_fd_flags (params):  Set params used to start bareos_fd.
15
#
17
#
16
18
Lines 19-31 Link Here
19
name="bareos_fd"
21
name="bareos_fd"
20
rcvar=${name}_enable
22
rcvar=${name}_enable
21
command=%%PREFIX%%/sbin/bareos-fd
23
command=%%PREFIX%%/sbin/bareos-fd
24
bareos_fd_user="root"
25
bareos_fd_group="wheel"
26
bareos_user="bareos"
27
bareos_group="bareos"
28
bareos_fd_configfile="%%PREFIX%%/etc/bareos/bareos-fd.conf"
29
start_precmd=${name}_prestart
22
30
23
load_rc_config $name
31
load_rc_config $name
24
32
25
: ${bareos_fd_enable="NO"}
33
: ${bareos_fd_enable="NO"}
26
: ${bareos_fd_flags=" -u root -g wheel -v -c %%PREFIX%%/etc/bareos/bareos-fd.conf"}
34
: ${bareos_fd_flags=" -u ${bareos_fd_user} -g ${bareos_fd_group} -v -c ${bareos_fd_configfile}"}
27
: ${bareos_fd_pidfile="/var/run/bareos/bareos-fd.9102.pid"}
35
: ${bareos_fd_pidfile="/var/run/bareos/bareos-fd.9102.pid"}
28
36
29
pidfile="${bareos_fd_pidfile}"
37
pidfile="${bareos_fd_pidfile}"
30
38
39
required_files=${bareos_fd_configfile}
40
required_dirs=${pidfile%/*}
41
42
bareos_fd_prestart()
43
{
44
        [ -d "${pidfile%/*}" ] || install -d -o ${bareos_user} -g {bareos_group} ${pidfile%/*}
45
}
46
31
run_rc_command "$1"
47
run_rc_command "$1"
(-)bareos-server/files/bareos-sd.in (-2 / +16 lines)
Lines 11-16 Link Here
11
#
11
#
12
# bareos_sd_enable  (bool):  Set to NO by default.
12
# bareos_sd_enable  (bool):  Set to NO by default.
13
#               Set it to YES to enable bareos_sd.
13
#               Set it to YES to enable bareos_sd.
14
# bareos_sd_configfile (foo/bar/file.conf): absolute path to bareos-sd
15
#               configuration file
14
# bareos_sd_flags (params):  Set params used to start bareos_sd.
16
# bareos_sd_flags (params):  Set params used to start bareos_sd.
15
#
17
#
16
18
Lines 19-31 Link Here
19
name="bareos_sd"
21
name="bareos_sd"
20
rcvar=${name}_enable
22
rcvar=${name}_enable
21
command=%%PREFIX%%/sbin/bareos-sd
23
command=%%PREFIX%%/sbin/bareos-sd
24
bareos_sd_user="bareos"
25
bareos_sd_group="bareos"
26
bareos_sd_configfile="%%PREFIX%%/etc/bareos/bareos-sd.conf"
27
start_precmd=${name}_prestart
22
28
23
load_rc_config $name
29
load_rc_config $name
24
30
25
: ${bareos_sd_enable="NO"}
31
: ${bareos_sd_enable="NO"}
26
: ${bareos_sd_flags=" -u bareos -g bareos -v -c %%PREFIX%%/etc/bareos/bareos-sd.conf"}
32
: ${bareos_sd_flags=" -u ${bareos_sd_user} -g ${bareos_sd_group} -v -c ${bareos_sd_configfile}"}
27
: ${bareos_sd_pidfile="/var/run/bareos/bareos-sd.9103.pid"}
33
: ${bareos_sd_pidfile="/var/run/bareos/bareos-sd.9103.pid"}
28
34
29
pidfile="${bacula_sd_pidfile}"
35
pidfile="${bareos_sd_pidfile}"
30
36
37
required_files=${bareos_sd_configfile}
38
required_dirs=${pidfile%/*}
39
40
bareos_sd_prestart()
41
{
42
       	[ -d "${pidfile%/*}" ] || install -d -o ${bareos_sd_user} -g ${bareos_sd_group} ${pidfile%/*}
43
}
44
31
run_rc_command "$1"
45
run_rc_command "$1"

Return to bug 212282