Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
ignore grep
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed May 11, 2015
1 parent 5e172fd commit 22945a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/nodejsctl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if [ $# -lt 1 ]; then
fi

function get_pid {
PID=`ps ax | grep ${PROJECT_NAME}/dispatch.js | awk '{print $1}'`
PID=`ps ax | grep -v grep | grep ${PROJECT_NAME}/dispatch.js | awk '{print $1}'`
}

#start nodejs
Expand Down

0 comments on commit 22945a6

Please sign in to comment.