From: Chris Sharp Date: Fri, 12 Jan 2018 23:09:34 +0000 (-0500) Subject: quietly check for apache procs, filtering out our grep X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fadd2dd4992d18040f3fbba66533ebd850ebc901;p=contrib%2Fpines%2Fgenasys.git quietly check for apache procs, filtering out our grep --- diff --git a/templates/setup-head.sh b/templates/setup-head.sh index a3661f0..533b827 100755 --- a/templates/setup-head.sh +++ b/templates/setup-head.sh @@ -206,7 +206,7 @@ systemctl stop apache2 echo;echo killing apache2 processes just in case... sleep 3 ps -ef | grep apache2 | grep -v grep | awk '{print $2}' | xargs kill -if ps -ef | grep apache2 +if ps -ef | grep apache2 | grep -vq grep then echo;echo echo "apache2 processes are still running please kill them manually"