Lines 31-34
Link Here
|
31 |
command_args="-c ${bareos_fd_config}" |
31 |
command_args="-c ${bareos_fd_config}" |
32 |
pidfile="${bareos_fd_pidfile}" |
32 |
pidfile="${bareos_fd_pidfile}" |
33 |
|
33 |
|
|
|
34 |
start_precmd() { |
35 |
|
36 |
[ -d "${pidfile%/*}" ] || { |
37 |
getent passwd bareos > /dev/null 2&>1 |
38 |
if [ $? -eq 0] ; then |
39 |
# user bareos exists |
40 |
install -d -o bareos -g bareos ${pidfile%/*} |
41 |
else |
42 |
# bareos_fd as solitair service |
43 |
install -d -o root -g wheel ${pidfile%/*} |
44 |
fi |
45 |
} |
46 |
|
47 |
} |
48 |
|
49 |
|
34 |
run_rc_command "$1" |
50 |
run_rc_command "$1" |