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 8fd4f83 commit d29d448
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions etc/init.d/petasos
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ start() {

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

0 comments on commit d29d448

Please sign in to comment.