pkgsrc-wip/bacula/files/bacula-dir.sh
Sergey Svishchev 6b0e791932 Update to latest release, 1.34.6 (too many changes since 1.32f to list here).
pkgsrc-specific changes:
  Use sqlite backend for now.  Provide rc.d scripts.

Builds and runs on FreeBSD 5.2.1, Red Hat Linux AS 2.1, 3.0.
2004-09-12 23:45:53 +00:00

23 lines
489 B
Bash

#!/bin/sh
#
# PROVIDE: bacula-dir
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="baculadir"
rcvar=$name
command="@PREFIX@/sbin/bacula-dir"
required_files="@BACULA_ETCDIR@/bacula-dir.conf"
pidfile="@BACULA_PIDDIR@/bacula-dir.9101.pid"
command_args="-c ${required_files} -u @BACULA_DIR_USER@ -g @BACULA_GROUP@"
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
echo -n " ${name}"
${command} ${baculadir_flags} -c ${required_files}
fi