Closed jbergler closed 8 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
The awk statement matches pid files that are commented out.
Debian switched their init scripts to using sed to make this more robust. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747329