Skip to content

Commit

Permalink
use pidof -c in various functions
Browse files Browse the repository at this point in the history
  • Loading branch information
wenottingham committed Apr 25, 2005
1 parent 9699684 commit 2b4f68e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion initscripts.spec
Expand Up @@ -13,7 +13,7 @@ Requires: /sbin/sysctl, sysklogd >= 1.3.31
Requires: /sbin/fuser, /bin/grep
Requires: module-init-tools
Requires: util-linux >= 2.10s-11, mount >= 2.11l
Requires: bash >= 3.0, SysVinit
Requires: bash >= 3.0, SysVinit >= 2.85-38
Requires: /sbin/ip, /sbin/arping, net-tools
Requires: /etc/redhat-release, dev
Requires: ethtool >= 1.8-2, kernel >= 2.6, /sbin/nash, /sbin/runuser
Expand Down
8 changes: 4 additions & 4 deletions rc.d/init.d/functions
Expand Up @@ -183,8 +183,8 @@ killproc() {
done
fi
if [ -z "$pid" ]; then
pid=`pidof -o $$ -o $PPID -o %PPID -x $1 || \
pidof -o $$ -o $PPID -o %PPID -x $base`
pid=`pidof -c -o $$ -o $PPID -o %PPID -x $1 || \
pidof -c -o $$ -o $PPID -o %PPID -x $base`
fi

# Kill it.
Expand Down Expand Up @@ -272,8 +272,8 @@ pidofproc() {
return 0
fi
fi
pidof -o $$ -o $PPID -o %PPID -x $1 || \
pidof -o $$ -o $PPID -o %PPID -x $base
pidof -c -o $$ -o $PPID -o %PPID -x $1 || \
pidof -c -o $$ -o $PPID -o %PPID -x $base
}

status() {
Expand Down

0 comments on commit 2b4f68e

Please sign in to comment.