# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
### BEGIN INIT INFO
-# Provides: bacula-dir
+# Provides: bacula-dir
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start @BACULA@ Director daemon at boot time
-# Description: Enable @BACULA@ Director.
+# Description: Enable @BACULA@ Director.
### END INIT INFO
#
start)
echo -n "Starting ${DESC}: "
start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- ${BOPTIONS}
+ RETVAL=$?
echo "${NAME}"
;;
stop)
echo -n "Stopping ${DESC}: "
start-stop-daemon --oknodo --stop --quiet --exec ${DAEMON} -- ${BOPTIONS}
+ RETVAL=$?
echo "${NAME}"
;;
restart|force-reload)
exit 1
;;
esac
-exit 0
+exit $RETVAL
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
### BEGIN INIT INFO
-# Provides: bacula-fd
+# Provides: bacula-fd
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start @BACULA@ Client daemon at boot time
-# Description: Enable @BACULA@ Client.
+# Description: Enable @BACULA@ Client.
### END INIT INFO
start)
echo -n "Starting ${DESC}: "
start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- ${BOPTIONS}
+ RETVAL=$?
echo "${NAME}"
;;
stop)
echo -n "Stopping ${DESC}: "
start-stop-daemon --oknodo --stop --quiet --exec ${DAEMON} -- ${BOPTIONS}
+ RETVAL=$?
echo "${NAME}"
;;
restart|force-reload)
exit 1
;;
esac
-exit 0
+exit $RETVAL
# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
#
### BEGIN INIT INFO
-# Provides: bacula-sd
+# Provides: bacula-sd
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start @BACULA@ Storage daemon at boot time
-# Description: Enable @BACULA@ Storage daemon.
+# Description: Enable @BACULA@ Storage daemon.
### END INIT INFO
start)
echo -n "Starting ${DESC}: "
start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- ${BOPTIONS}
+ RETVAL=$?
echo "${NAME}"
;;
stop)
echo -n "Stopping ${DESC}: "
start-stop-daemon --oknodo --stop --quiet --exec ${DAEMON} -- ${BOPTIONS}
+ RETVAL=$?
echo "${NAME}"
;;
restart|force-reload)
exit 1
;;
esac
-exit 0
+exit $RETVAL
#! /bin/sh
#
# bacula This shell script takes care of starting and stopping
-# the bacula Director daemon
+# the bacula Director daemon
#
# chkconfig: 2345 90 9
# description: It comes by night and sucks the vital essence from your computers.
# Added LSB init info 10/14/2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
#
### BEGIN INIT INFO
-# Provides: bacula-dir
-# Required-Start: $local_fs $network @DB_TYPE@
-# Required-Stop: $local_fs $network @DB_TYPE@
-# Default-Start: 3 5
-# Default-Stop: 0 1 2 6
-# Short-Description: bacula director
-# Description: Bacula network backup system director daemon
+# Provides: bacula-dir
+# Required-Start: $local_fs $network @DB_TYPE@
+# Required-Stop: $local_fs $network @DB_TYPE@
+# Default-Start: 3 5
+# Default-Stop: 0 1 2 6
+# Short-Description: bacula director
+# Description: Bacula network backup system director daemon
### END INIT INFO
# source process status functions
;;
status)
/sbin/checkproc @sbindir@/bacula-dir
+ RETVAL=$?
rc_status -v
;;
*)
exit 1
;;
esac
-exit 0
+exit $RETVAL
;;
status)
/sbin/checkproc @sbindir@/bacula-fd
+ RETVAL=$?
rc_status -v
;;
*)
exit 1
;;
esac
-exit 0
+exit $RETVAL
;;
status)
/sbin/checkproc @sbindir@/bacula-sd
+ RETVAL=$?
rc_status -v
;;
*)
exit 1
;;
esac
-exit 0
+exit $RETVAL
start)
echo -n "Starting ${DESC}: "
start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- ${BOPTIONS}
+ RETVAL=$?
echo "${NAME}"
;;
stop)
echo -n "Stopping ${DESC}: "
start-stop-daemon --oknodo --stop --quiet --exec ${DAEMON} -- ${BOPTIONS}
+ RETVAL=$?
echo "${NAME}"
;;
restart|force-reload)
exit 1
;;
esac
-exit 0
+exit $RETVAL
start)
echo -n "Starting ${DESC}: "
start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- ${BOPTIONS}
+ RETVAL=$?
echo "${NAME}"
;;
stop)
echo -n "Stopping ${DESC}: "
start-stop-daemon --oknodo --stop --quiet --exec ${DAEMON} -- ${BOPTIONS}
+ RETVAL=$?
echo "${NAME}"
;;
restart|force-reload)
exit 1
;;
esac
-exit 0
+exit $RETVAL
start)
echo -n "Starting ${DESC}: "
start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- ${BOPTIONS}
+ RETVAL=$?
echo "${NAME}"
;;
stop)
echo -n "Stopping ${DESC}: "
start-stop-daemon --oknodo --stop --quiet --exec ${DAEMON} -- ${BOPTIONS}
+ RETVAL=$?
echo "${NAME}"
;;
restart|force-reload)
exit 1
;;
esac
-exit 0
+exit $RETVAL