logstash/logstash — pull request #962 by dampcake (2014-01-20 20:05:41+00:00)
Title: Use $! instead of pgrep to get PID

related: LOGSTASH-1806

Using $! as it works much better for getting the PID, especially if the executable path contains special characters.