From be5e1c7753d687c7e5c321b31e618fd6a645ca7e Mon Sep 17 00:00:00 2001 From: kueller Date: Fri, 23 Apr 2010 08:58:16 +0000 Subject: [PATCH] pidof mag auch kein -x...:_(( git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5589 504e572c-2e33-0410-9681-be2bf7408885 --- etc/init.d/functions | 8 ++++---- etc/init/functions | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/etc/init.d/functions b/etc/init.d/functions index a0bcea2..fd2c25b 100755 --- a/etc/init.d/functions +++ b/etc/init.d/functions @@ -148,7 +148,7 @@ loadproc() base=`/bin/basename $1` - pidlist=`/bin/pidof -x $base|sed -e "s/$$//"|sed -e "s/$PPID//"` + pidlist=`/bin/pidof $base|sed -e "s/$$//"|sed -e "s/$PPID//"` pid="" @@ -188,7 +188,7 @@ killproc() nolevel=1 fi - pidlist=`/bin/pidof -x $base|sed -e "s/$$//"|sed -e "s/$PPID//"` + pidlist=`/bin/pidof $base|sed -e "s/$$//"|sed -e "s/$PPID//"` pid="" @@ -251,7 +251,7 @@ reloadproc() nolevel=1 fi - pidlist=`/bin/pidof -o $$ -o $PPID -o %PPID -x $base` + pidlist=`/bin/pidof $base|sed -e "s/$$//"|sed -e "s/$PPID//"` pid="" @@ -287,7 +287,7 @@ statusproc() return 1 fi - pid=`/bin/pidof -o $$ -o $PPID -o %PPID -x $1` + pidlist=`/bin/pidof $base|sed -e "s/$$//"|sed -e "s/$PPID//"` if [ -n "$pid" ] then echo "$1 running with Process ID $pid" diff --git a/etc/init/functions b/etc/init/functions index bae69fd..5cfafbe 100755 --- a/etc/init/functions +++ b/etc/init/functions @@ -164,7 +164,7 @@ loadproc() base=`/bin/basename $1` - pidlist=`/bin/pidof -x $base|sed -e "s/$$//"|sed -e "s/$PPID//"` + pidlist=`/bin/pidof $base|sed -e "s/$$//"|sed -e "s/$PPID//"` pid="" @@ -204,7 +204,7 @@ killproc() nolevel=1 fi - pidlist=`/bin/pidof -x $base|sed -e "s/$$//"|sed -e "s/$PPID//"` + pidlist=`/bin/pidof $base|sed -e "s/$$//"|sed -e "s/$PPID//"` pid="" @@ -267,7 +267,7 @@ reloadproc() nolevel=1 fi - pidlist=`/bin/pidof -o $$ -o $PPID -o %PPID -x $base` + pidlist=`/bin/pidof $base|sed -e "s/$$//"|sed -e "s/$PPID//"` pid="" @@ -303,7 +303,7 @@ statusproc() return 1 fi - pid=`/bin/pidof -o $$ -o $PPID -o %PPID -x $1` + pidlist=`/bin/pidof $base|sed -e "s/$$//"|sed -e "s/$PPID//"` if [ -n "$pid" ] then echo "$1 running with Process ID $pid"