aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1998-10-28 21:52:26 +0000
committerBill Nottingham <notting@redhat.com>1998-10-28 21:52:26 +0000
commitc12a6d9a3710225259f2d7853e2be19a4802ddd5 (patch)
tree0df503ca4cb2da6892fc311506124f52cf58dfec /rc.d/init.d/functions
parent920874876a3bf4636eb1c1de67b028417b1563b8 (diff)
downloadinitscripts-c12a6d9a3710225259f2d7853e2be19a4802ddd5.tar
initscripts-c12a6d9a3710225259f2d7853e2be19a4802ddd5.tar.gz
initscripts-c12a6d9a3710225259f2d7853e2be19a4802ddd5.tar.bz2
initscripts-c12a6d9a3710225259f2d7853e2be19a4802ddd5.tar.xz
initscripts-c12a6d9a3710225259f2d7853e2be19a4802ddd5.zip
fix status() (was catching instance of initscripts)
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-xrc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index e33554ab..eea288a9 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -127,7 +127,7 @@ status() {
echo "$1 (pid $pid) is running..."
return 0
else
- pid=`ps auxww | grep '[^[]'$1 | awk '{print $2}'`
+ pid=`ps auxww | awk '{ if ($12 ~ /^[^[]'"$1"'/) print $2}'`
if [ "$pid" != "" ] ; then
echo "$1 (pid $pid) is running..."
return 0