diff options
Diffstat (limited to 'sysutils/bareos-server/files/bareos-fd.in')
| -rw-r--r-- | sysutils/bareos-server/files/bareos-fd.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sysutils/bareos-server/files/bareos-fd.in b/sysutils/bareos-server/files/bareos-fd.in index 5df257a2f30c..bfa75cf6d6cc 100644 --- a/sysutils/bareos-server/files/bareos-fd.in +++ b/sysutils/bareos-server/files/bareos-fd.in @@ -12,20 +12,23 @@ # bareos_fd_enable (bool): Set to NO by default. # Set it to YES to enable bareos_fd. # bareos_fd_flags (params): Set params used to start bareos_fd. +# bareos_fd_config (params): Path to the config file/directory # . /etc/rc.subr name="bareos_fd" rcvar=${name}_enable -command=%%PREFIX%%/sbin/bareos-fd load_rc_config $name : ${bareos_fd_enable="NO"} -: ${bareos_fd_flags=" -u root -g wheel -v -c %%PREFIX%%/etc/bareos/bareos-fd.conf"} +: ${bareos_fd_flags="-u root -g wheel -v"} +: ${bareos_fd_config="%%PREFIX%%/etc/bareos/bareos-fd.d"} : ${bareos_fd_pidfile="/var/run/bareos/bareos-fd.9102.pid"} +command=%%PREFIX%%/sbin/bareos-fd +command_args="-c ${bareos_fd_config}" pidfile="${bareos_fd_pidfile}" run_rc_command "$1" |
