46570ab13e
#!@RCD_SCRIPTS_SHELL@ instead of #!/bin/sh Makes the startup scripts work on /bin/sh-challenged systems like solaris. Bump PKGREVISION.
23 lines
474 B
Bash
23 lines
474 B
Bash
#!@RCD_SCRIPTS_SHELL@
|
|
#
|
|
# PROVIDE: bacula-fd
|
|
# REQUIRE: DAEMON
|
|
|
|
if [ -f /etc/rc.subr ]; then
|
|
. /etc/rc.subr
|
|
fi
|
|
|
|
name="baculafd"
|
|
rcvar=$name
|
|
command="@PREFIX@/sbin/bacula-fd"
|
|
required_files="@BACULA_ETCDIR@/bacula-fd.conf"
|
|
pidfile="@BACULA_PIDDIR@/bacula-fd.9102.pid"
|
|
command_args="-c ${required_files} -g @BACULA_GROUP@"
|
|
|
|
if [ -f /etc/rc.subr ]; then
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|
|
else
|
|
echo -n " ${name}"
|
|
${command} ${baculafd_flags} -c ${required_files}
|
|
fi
|