Skip to content

Commit

Permalink
Update init.d script to not alter other supervisord scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Jan 4, 2018
1 parent 116117a commit b131cd4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions etc/init.d/scytale
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ start() {

stop() {
echo -n $"Stopping scytale: "
killproc supervisord
kill $(cat /var/run/scytale.pid)
supervisorctl -c /etc/scytale/supervisord.conf shutdown > /dev/null
RETVAL=$?
rm -f /var/run/scytale.pid
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/scytale
}
Expand All @@ -86,7 +84,7 @@ case "$1" in
[ -f /var/lock/subsys/scytale ] && restart
;;
status)
status scytale
supervisorctl -c /etc/scytale/supervisord.conf status
RETVAL=$?
;;
*)
Expand Down

0 comments on commit b131cd4

Please sign in to comment.