diff options
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/functions | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index daba8c5b..45de373a 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -148,9 +148,9 @@ pidofproc() { fi # Finally try to extract it from ps - ps auxw | awk 'BEGIN { prog=ARGV[1]; ARGC=1 } - { if ((prog == $11) || (("(" prog ")") == $11) || - ((prog ":") == $11)) { print $2 ; exit 0 } }' $1 + ps ax | awk 'BEGIN { prog=ARGV[1]; ARGC=1 } + { if ((prog == $5) || (("(" prog ")") == $5) || + ((prog ":") == $5)) { print $1 ; exit 0 } }' $1 } status() { |