pidof mag auch kein -x...:_((
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_upstart@5589 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
a16fd6694c
commit
be5e1c7753
@ -148,7 +148,7 @@ loadproc()
|
|||||||
|
|
||||||
base=`/bin/basename $1`
|
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=""
|
pid=""
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ killproc()
|
|||||||
nolevel=1
|
nolevel=1
|
||||||
fi
|
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=""
|
pid=""
|
||||||
|
|
||||||
@ -251,7 +251,7 @@ reloadproc()
|
|||||||
nolevel=1
|
nolevel=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pidlist=`/bin/pidof -o $$ -o $PPID -o %PPID -x $base`
|
pidlist=`/bin/pidof $base|sed -e "s/$$//"|sed -e "s/$PPID//"`
|
||||||
|
|
||||||
pid=""
|
pid=""
|
||||||
|
|
||||||
@ -287,7 +287,7 @@ statusproc()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
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" ]
|
if [ -n "$pid" ]
|
||||||
then
|
then
|
||||||
echo "$1 running with Process ID $pid"
|
echo "$1 running with Process ID $pid"
|
||||||
|
@ -164,7 +164,7 @@ loadproc()
|
|||||||
|
|
||||||
base=`/bin/basename $1`
|
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=""
|
pid=""
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ killproc()
|
|||||||
nolevel=1
|
nolevel=1
|
||||||
fi
|
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=""
|
pid=""
|
||||||
|
|
||||||
@ -267,7 +267,7 @@ reloadproc()
|
|||||||
nolevel=1
|
nolevel=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pidlist=`/bin/pidof -o $$ -o $PPID -o %PPID -x $base`
|
pidlist=`/bin/pidof $base|sed -e "s/$$//"|sed -e "s/$PPID//"`
|
||||||
|
|
||||||
pid=""
|
pid=""
|
||||||
|
|
||||||
@ -303,7 +303,7 @@ statusproc()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
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" ]
|
if [ -n "$pid" ]
|
||||||
then
|
then
|
||||||
echo "$1 running with Process ID $pid"
|
echo "$1 running with Process ID $pid"
|
||||||
|
Loading…
Reference in New Issue
Block a user