freebsd-ports/sysutils/bacula13-server/files/bacula-fd.in
Dan Langille c38f2ffe95 sysutils/bacula13-server: New ports for Bacula 13
NOTE: I am unsure of how stable this is. Please proceed with caution.

Also coming in:

* sysutils/bacula13-client
* sysutils/bacula13-docs
* net-mgmt/nagios-check_bacula13

Not present yet: sysutils/bacula13-client-static because of unknown
build issues.
2022-07-10 01:10:08 +00:00

29 lines
662 B
Bash

#!/bin/sh
# 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"