diff options
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-x | rc.d/init.d/functions | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 29661799..a7c8fcab 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -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. @@ -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() { |