diff options
author | Bill Nottingham <notting@redhat.com> | 1998-11-02 20:09:04 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1998-11-02 20:09:04 +0000 |
commit | ea97e28d7dcaa3c1cca11dd1dc9171fc0444a272 (patch) | |
tree | 08b5895e67410918fd0bab552e7afed7c1526a51 /rc.d | |
parent | c12a6d9a3710225259f2d7853e2be19a4802ddd5 (diff) | |
download | initscripts-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-x | rc.d/init.d/functions | 2 |
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 |