ports/sysutils/bacula13-server/files/bacula_fd.in
Dan Langille 8636c2e714 sysutils/bacula*-{client,server}: fix rc script names
The filenames now comply with the rc scripting recommendations and
service jails options.

Users may have to update any personal scripts they have which depend
upon those rc.d script names. See UPDATING for 20240705

PR:		280137
2024-07-05 14:36:51 +00:00

30 lines
703 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"}
: ${bacula_fd_svcj_options:="net_basic"}
pidfile="${bacula_fd_pidfile}"
run_rc_command "$1"