Comment 2 for bug 1314740

Revision history for this message
Greg Lutostanski (lutostag) wrote : Re: init script pid parsing has failure cases

PID=$(sed -n 's/^\s*pid\s\s*\([^;]*\).*/\1/p' /etc/nginx/nginx.conf)

works for the three testcases shown in this and linked bugs.

not sure why I cant use \s+ after pid in the expression above, but it works this way.