pkgsrc/sysutils/bacula/files/bacula-sd.sh
dmcmahill 46570ab13e use
#!@RCD_SCRIPTS_SHELL@

instead of

#!/bin/sh

Makes the startup scripts work on /bin/sh-challenged systems like solaris.

Bump PKGREVISION.
2008-06-23 15:46:41 +00:00

23 lines
494 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# PROVIDE: bacula-sd
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="baculasd"
rcvar=$name
command="@PREFIX@/sbin/bacula-sd"
required_files="@BACULA_ETCDIR@/bacula-sd.conf"
pidfile="@BACULA_PIDDIR@/bacula-sd.9103.pid"
command_args="-c ${required_files} -u @BACULA_SD_USER@ -g @BACULA_GROUP@"
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
echo -n " ${name}"
${command} ${baculasd_flags} -c ${required_files}
fi