Skip to content

Commit

Permalink
Updated the termination script for trell.
Browse files Browse the repository at this point in the history
  • Loading branch information
kjetilly committed Oct 25, 2013
1 parent 30b777d commit 9f6a83c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ if [ -f /tmp/trell_master.pid ]
then
pid=$(cat /tmp/trell_master.pid)
# Check if it's really the trell_master pid
if [[ $(ps ${pid}) == *"trell_master"* ]]
if [[ $(ps ${pid}) == *"tinia_trell_master"* ]]
then
kill -SIGTERM ${pid}
echo "Trying to kill trell_master, waiting 3 seconds"
echo "Trying to kill tinia_trell_master, waiting 3 seconds"
sleep 3s
if [[ $(ps ${pid}) == *"trell_master"* ]]
if [[ $(ps ${pid}) == *"tinia_trell_master"* ]]
then
echo "WARNING: trell_master did not die from SIGTERM, doing kill -9"
kill -9 ${pid}
Expand Down

0 comments on commit 9f6a83c

Please sign in to comment.