4 # Provides: orchestra-conductor
5 # Required-Start: networking
6 # Required-Stop: networking
7 # Default-Start: 2 3 4 5
9 # Short-Description: Conductor queue manager for Orchestra
14 export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
16 CONDUCTOR=/usr/sbin/conductor
18 test -x "${CONDUCTOR}" || exit 0
22 PIDFILE=/var/run/orchestra-conductor.pid
24 if test -f /etc/default/orchestra-conductor; then
25 . /etc/default/orchestra-conductor
28 . /lib/lsb/init-functions
30 if [ "${ENABLED}" != "yes" ]; then
36 log_daemon_msg "Starting the Conductor"
37 if start-stop-daemon --start --quiet --oknodo --background --pidfile "${PIDFILE}" --make-pidfile --exec "${CONDUCTOR}" -- ${CONDUCTOR_ARGS}; then
44 log_daemon_msg "Stopping the Conductor"
45 if start-stop-daemon --stop --quiet --oknodo --pidfile "${PIDFILE}" -x "${CONDUCTOR}"; then
52 log_daemon_msg "Asking the Conductor to Reload Configuration"
53 if start-stop-daemon --stop --quiet --signal HUP --pidfile "${PIDFILE}" -x "${CONDUCTOR}"; then
60 status_of_proc -p "${PIDFILE}" "${CONDUCTOR}" conductor && exit 0 || exit $?
63 log_action_msg "Usage: /etc/init.d/orchestra-conductor {start|stop|reload|status}"