Skip to content

Commit

Permalink
Merge pull request elastic#962 from dampcake/LOGSTASH-1806
Browse files Browse the repository at this point in the history
Use $! instead of pgrep to get PID
  • Loading branch information
jordansissel committed Jan 20, 2014
2 parents ed964fe + b0c3684 commit a9aad34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logstash.sysv.redhat
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ do_start()
$JAVA $ARGS > /dev/null 1>&1 &

RETVAL=$?
local PID=`pgrep -f "${DAEMON} ${ARGS}"`
local PID=$!
echo $PID > $PID_FILE
success
}
Expand Down

0 comments on commit a9aad34

Please sign in to comment.