phusion / passenger_apt_automation

Tools for automatically building a Debian APT repository for Phusion Passenger
MIT License
20 stars 20 forks source link

Initscript has bad awk for locating pidfile #5

Closed jbergler closed 8 years ago

jbergler commented 9 years ago

The awk statement matches pid files that are commented out.

$ cat pid
#pid /path/to/pid

$ echo $(awk -F'[ \t;]+' '/[^#]\<pid/ {print $2}' pid)
/path/to/pid

Debian switched their init scripts to using sed to make this more robust. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747329