forked from Lainports/opnsense-ports
31 lines
765 B
Bash
31 lines
765 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD: head/sysutils/bacula5-server/files/bacula-fd.in 323275 2013-07-19 09:44:58Z rm $
|
|
#
|
|
# PROVIDE: bareos_fd
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# 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.
|
|
#
|
|
|
|
. /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_pidfile="/var/run/bareos/bareos-fd.9102.pid"}
|
|
|
|
pidfile="${bareos_fd_pidfile}"
|
|
|
|
run_rc_command "$1"
|