Skip to content

Commit

Permalink
Fix the stop and restart commands so they only destroy this one process.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Nov 16, 2017
1 parent 5d216c2 commit 315ee39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion etc/init.d/tr1d1um
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ start() {

stop() {
echo -n $"Stopping tr1d1um: "
killproc supervisord
kill $(cat /var/run/tr1d1um.pid)
RETVAL=$?
rm -f /var/run/tr1d1um.pid
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/tr1d1um
}
Expand Down

0 comments on commit 315ee39

Please sign in to comment.