Skip to content

Commit

Permalink
better prod restart & kill-stop
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Oct 14, 2012
1 parent 3aff0e1 commit e2827dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
9 changes: 0 additions & 9 deletions bin/prod/kill-start

This file was deleted.

12 changes: 11 additions & 1 deletion bin/prod/stop
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/bin/sh
. bin/lilarc

lilapid=$(cat RUNNING_PID)

lilalog "Running with pid $lilapid"

lilalog "Stop application"
kill $(cat RUNNING_PID)
kill $lilapid
rm RUNNING_PID

sleep 1

lilalog "Force kill in case port 9000 is still bound"
pkill -9 --echo --full "java -Dconfig.file=conf/local.conf -Dhttp.port=9000"

0 comments on commit e2827dc

Please sign in to comment.