Permalink
Browse files

Fix for when start-stop-daemon --status is not supported

  • Loading branch information...
1 parent d730333 commit c55134046e8231025e0d5ff009cfcf0b7909d98b @iconara iconara committed Jan 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ci_environment/cassandra/templates/default/cassandra.init.erb
@@ -43,7 +43,7 @@ FD_LIMIT=100000
# 1 if daemon is not running
is_running()
{
- start-stop-daemon --status --pidfile $PIDFILE --user $USER && return 0
+ [ -f $PIDFILE -a -d /proc/$(cat $PIDFILE) ] && return 0
return 1
}

0 comments on commit c551340

Please sign in to comment.