SD_USER=@sd_user@
SD_GROUP=@sd_group@
-
+Bacula="@BACULA@"
PIDOF=@PIDOF@
# A function to stop a program.
case "$1" in
start)
[ -x ${BACSDBIN}/bacula-sd ] && {
- echo "Starting the Bacula Storage daemon"
+ echo "Starting the $Bacula Storage daemon"
OPTIONS=''
if [ "${SD_USER}" != '' ]; then
OPTIONS="${OPTIONS} -u ${SD_USER}"
OPTIONS="${OPTIONS} -g ${SD_GROUP}"
fi
- ${BACSDBIN}/bacula-sd $2 ${OPTIONS} -v -c ${BACSDCFG}/bacula-sd.conf
+ ${BACSDBIN}/bacula-sd $2 $3 ${OPTIONS} -v -c ${BACSDCFG}/bacula-sd.conf
}
;;
stop)
[ -x ${BACSDBIN}/bacula-sd ] && {
- echo "Stopping the Bacula Storage daemon"
+ echo "Stopping the $Bacula Storage daemon"
killproc ${BACSDBIN}/bacula-sd ${SD_PORT}
}
;;