
If set, the first line of $command is read, the leading #! is removed, whitespace is normalised, the first word is checked against $command_interpreter, and the result is used as the string to match in the ps(1) output. This code isn't infallable, but works for common cases such as #!/bin/sh #! /usr/pkg/bin/perl -w This helps solve the problem described in [bin/15563], and by Ed Ravin on tech-userlevel. - Move the common elements of check_process() and check_pidfile() into _find_processes(), and call appropriately.
Description
No description provided
Languages
C
85.3%
Roff
7.2%
Assembly
3.1%
Shell
1.7%
Makefile
1.2%
Other
0.9%