forked from Lainports/freebsd-ports
has been released. Split the documentation into a new port, sysutils/bacula-docs. You must run the database upgrade script after upgrading to Bacula 2.0.0 Many new features here. See http://www.bacula.org/?page=presskits for an overview, and ReleaseNotes for full details. PR: ports/107535 Submitted by: Dan Langille (maintainer)
31 lines
713 B
Bash
31 lines
713 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: utility
|
|
# 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.
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="bacula_dir"
|
|
rcvar=${name}_enable
|
|
command=%%PREFIX%%/sbin/bacula-dir
|
|
|
|
load_rc_config $name
|
|
|
|
pidfile="${bacula_dir_pidfile}"
|
|
|
|
: ${bacula_dir_enable="NO"}
|
|
: ${bacula_dir_flags=" -u bacula -g bacula -v -c %%PREFIX%%/etc/bacula-dir.conf"}
|
|
: ${bacula_dir_pidfile="/var/run/bacula-dir.9101.pid"}
|
|
|
|
run_rc_command "$1"
|