Skip to content

Commit

Permalink
Use kill -0 to detect a running process rather than relying on Ostrich
Browse files Browse the repository at this point in the history
HTTP checking.

RB_ID=90376
  • Loading branch information
Cory Watson committed Oct 11, 2012
1 parent defea76 commit 5b3fdaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scripts/kestrel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ daemon_pidfile="/var/run/$APP_NAME/$APP_NAME-daemon.pid"


running() {
curl -m 5 -s "http:https://localhost:$ADMIN_PORT/ping.txt" > /dev/null 2> /dev/null
#curl -m 5 -s "http:https://localhost:$ADMIN_PORT/ping.txt" > /dev/null 2> /dev/null
kill -0 `cat $pidfile`
}

find_java() {
Expand Down

0 comments on commit 5b3fdaa

Please sign in to comment.