diff options
Diffstat (limited to 'sysutils/bacula5-server/files/bacula-fd.in')
-rw-r--r-- | sysutils/bacula5-server/files/bacula-fd.in | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/bacula5-server/files/bacula-fd.in b/sysutils/bacula5-server/files/bacula-fd.in new file mode 100644 index 000000000000..70add50a1915 --- /dev/null +++ b/sysutils/bacula5-server/files/bacula-fd.in @@ -0,0 +1,31 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: bacula_fd +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# bacula_fd_enable (bool): Set to NO by default. +# Set it to YES to enable bacula_fd. +# bacula_fd_flags (params): Set params used to start bacula_fd. +# + +. /etc/rc.subr + +name="bacula_fd" +rcvar=${name}_enable +command=%%PREFIX%%/sbin/bacula-fd + +load_rc_config $name + +: ${bacula_fd_enable="NO"} +: ${bacula_fd_flags=" -u root -g wheel -v -c %%PREFIX%%/etc/bacula/bacula-fd.conf"} +: ${bacula_fd_pidfile="/var/run/bacula-fd.9102.pid"} + +pidfile="${bacula_fd_pidfile}" + +run_rc_command "$1" |