aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1998-11-02 20:09:04 +0000
committerBill Nottingham <notting@redhat.com>1998-11-02 20:09:04 +0000
commitea97e28d7dcaa3c1cca11dd1dc9171fc0444a272 (patch)
tree08b5895e67410918fd0bab552e7afed7c1526a51 /rc.d
parentc12a6d9a3710225259f2d7853e2be19a4802ddd5 (diff)
downloadinitscripts-ea97e28d7dcaa3c1cca11dd1dc9171fc0444a272.tar
initscripts-ea97e28d7dcaa3c1cca11dd1dc9171fc0444a272.tar.gz
initscripts-ea97e28d7dcaa3c1cca11dd1dc9171fc0444a272.tar.bz2
initscripts-ea97e28d7dcaa3c1cca11dd1dc9171fc0444a272.tar.xz
initscripts-ea97e28d7dcaa3c1cca11dd1dc9171fc0444a272.zip
sort daemons in status() by pid
Diffstat (limited to 'rc.d')
-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 eea288a9..a651d699 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 | awk '{ if ($12 ~ /^[^[]'"$1"'/) print $2}'`
+ pid=`ps auxww Op | awk '{ if ($12 ~ /^[^[]'"$1"'/) print $2}'`
if [ "$pid" != "" ] ; then
echo "$1 (pid $pid) is running..."
return 0