mirror of
https://git.freebsd.org/ports.git
synced 2025-05-02 11:36:40 -04:00
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
30 lines
751 B
Bash
30 lines
751 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: bacula_dir
|
|
# REQUIRE: DAEMON %%REQ_MYSQL%% %%REQ_PGSQL%%
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# bacula_dir_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable bacula_dir.
|
|
# bacula_dir_flags (params): Set params used to start bacula_dir.
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="bacula_dir"
|
|
rcvar=${name}_enable
|
|
command=%%PREFIX%%/sbin/bacula-dir
|
|
|
|
load_rc_config $name
|
|
|
|
: ${bacula_dir_enable="NO"}
|
|
: ${bacula_dir_flags=" -u bacula -g bacula -v -c %%PREFIX%%/etc/bacula/bacula-dir.conf"}
|
|
: ${bacula_dir_pidfile="/var/run/bacula-dir.9101.pid"}
|
|
: ${bacula_dir_svcj_options:="net_basic"}
|
|
|
|
pidfile="${bacula_dir_pidfile}"
|
|
|
|
run_rc_command "$1"
|