diff options
author | Bill Nottingham <notting@redhat.com> | 1999-03-26 21:50:41 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-03-26 21:50:41 +0000 |
commit | 53d2741afe8206dccacf52abc8763bf798e82da6 (patch) | |
tree | f9dbb949738db81129af03ef7632333b40fadd13 | |
parent | 8956723c3bb83c0cfbace61bae5bd01a82a2912d (diff) | |
download | initscripts-53d2741afe8206dccacf52abc8763bf798e82da6.tar initscripts-53d2741afe8206dccacf52abc8763bf798e82da6.tar.gz initscripts-53d2741afe8206dccacf52abc8763bf798e82da6.tar.bz2 initscripts-53d2741afe8206dccacf52abc8763bf798e82da6.tar.xz initscripts-53d2741afe8206dccacf52abc8763bf798e82da6.zip |
swapped out can be [foo]
-rwxr-xr-x | rc.d/init.d/functions | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 14485d9c..d15f19a0 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -154,6 +154,7 @@ pidofproc() { # Finally try to extract it from ps ps ax | awk 'BEGIN { prog=ARGV[1]; ARGC=1 } { if ((prog == $5) || (("(" prog ")") == $5) || + (("[" prog "]") == $5) || ((prog ":") == $5)) { print $1 ; exit 0 } }' $1 } |