Skip to content

Commit

Permalink
Merge pull request #96 from fessyfoo/fixup-init-script-bit-flip
Browse files Browse the repository at this point in the history
fix init script to actually check status
  • Loading branch information
travees committed Aug 20, 2016
2 parents 5cf352d + d52ba09 commit 91c7f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/init.erb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ status() {
fi

PID=`cat "$PID_FILE"`
if [ `ps -p "$PID" -o pid= || echo 1` -eq `pgrep -f "$PGREP_PATTERN" || echo 2` ] ; then
if [ `ps -p "$PID" -o pid= || echo 1` -ne `pgrep -f "$PGREP_PATTERN" || echo 2` ] ; then
echo "$NAME stopped but pid file exists"
exit 1
fi
Expand Down

0 comments on commit 91c7f25

Please sign in to comment.