4 # Provides: orchestra-player-go
5 # Required-Start: networking
6 # Required-Stop: networking
7 # Default-Start: 2 3 4 5
9 # Short-Description: Player execuation agent for Orchestra
14 export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
16 PLAYER=/usr/sbin/player
18 test -x "${PLAYER}" || exit 0
23 PIDFILE=/var/run/orchestra-player-go.pid
25 if test -f /etc/default/orchestra-player-go; then
26 . /etc/default/orchestra-player-go
29 . /lib/lsb/init-functions
31 if [ "${ENABLED}" != "yes" ]; then
37 log_daemon_msg "Starting the Player"
38 if start-stop-daemon --start --quiet --oknodo --background --pidfile "${PIDFILE}" --make-pidfile --exec "${PLAYER}" -- ${PLAYER_ARGS}; then
45 log_daemon_msg "Stopping the Player"
46 if start-stop-daemon --stop --quiet --oknodo --pidfile "${PIDFILE}" -x "${PLAYER}"; then
53 log_daemon_msg "Asking the Player to Reload Configuration"
54 if start-stop-daemon --stop --quiet --signal HUP --pidfile "${PIDFILE}" -x "${PLAYER}"; then
61 status_of_proc -p "${PIDFILE}" "${PLAYER}" player && exit 0 || exit $?
64 log_action_msg "Usage: /etc/init.d/orchestra-player-go {start|stop|status}"