ports/sysutils/bacula-server/files/bacula-fd.in
Ruslan Makhmatkhanov 4a97a017f4 - move bacula configuration to ${ETCDIR}/bacula
- bump PORTREVISION
- add UPDATING entry
- add an option to enable python support (both client and server
  need to be rebuilt with this)

Dan's submission is based on:
PR:     170882
Submitted by:   Michael Carlson <mike@bayphoto.com>

PR:     171818
Submitted by:   Florian Ermisch <floh.edo@googlemail.com>

PR:     177331
Submitted by:   Dan Langille <dan@langille.org> (maintainer)
2013-07-19 09:44:58 +00:00

31 lines
677 B
Bash

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