aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-03-26 21:50:41 +0000
committerBill Nottingham <notting@redhat.com>1999-03-26 21:50:41 +0000
commit53d2741afe8206dccacf52abc8763bf798e82da6 (patch)
treef9dbb949738db81129af03ef7632333b40fadd13
parent8956723c3bb83c0cfbace61bae5bd01a82a2912d (diff)
downloadinitscripts-53d2741afe8206dccacf52abc8763bf798e82da6.tar
initscripts-53d2741afe8206dccacf52abc8763bf798e82da6.tar.gz
initscripts-53d2741afe8206dccacf52abc8763bf798e82da6.tar.bz2
initscripts-53d2741afe8206dccacf52abc8763bf798e82da6.tar.xz
initscripts-53d2741afe8206dccacf52abc8763bf798e82da6.zip
swapped out can be [foo]
-rwxr-xr-xrc.d/init.d/functions1
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
}