X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fstopdaemons.sh;h=e88fe26e22970c17ac944b188b41400f4c76908c;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=274f0903e25a75ad1c5ff5347333b06818625885;hpb=a0b9aeb43ef1b08e8dd7fe25101c515a0df53e7f;p=quix0rs-gnu-social.git diff --git a/scripts/stopdaemons.sh b/scripts/stopdaemons.sh index 274f0903e2..e88fe26e22 100755 --- a/scripts/stopdaemons.sh +++ b/scripts/stopdaemons.sh @@ -39,9 +39,9 @@ if [ $# -gt 1 ]; then fi SDIR=`dirname $0` -DIR=`$SDIR/getpiddir.php $SITE` +DIR=`$SDIR/getpiddir.php $SITE 2>/dev/null | grep -v "FUSE_EDEADLK"` -DAEMONS=`$SDIR/getvaliddaemons.php $ARGSG` +DAEMONS=`$SDIR/getvaliddaemons.php $ARGSG 2>/dev/null | grep -v "FUSE_EDEADLK"` for f in $DAEMONS; do f=$(basename $f .php) @@ -52,7 +52,7 @@ for f in $DAEMONS; do PID=`cat $ff 2>/dev/null` if [ -n "$PID" ] ; then - echo -n "Stopping $f ($PID)..." + echo -n "Stopping '$f' ($PID)..." if kill -3 $PID 2>/dev/null ; then count=0 while kill -0 $PID 2>/dev/null ; do