[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: add quotes to -z tests from ps checks in init script

git at icinga.org git at icinga.org
Fri Nov 4 15:00:31 CET 2011


Module: icinga-core
Branch: mfriedrich/core
Commit: 5bf7326bfd8e78e161d347e46851aa603c599118
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=5bf7326bfd8e78e161d347e46851aa603c599118

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Fri Nov  4 14:59:30 2011 +0100

add quotes to -z tests from ps checks in init script

---

 daemon-init.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemon-init.in b/daemon-init.in
index 3c0f02e..06ed130 100644
--- a/daemon-init.in
+++ b/daemon-init.in
@@ -103,7 +103,7 @@ pid_icinga ()
 	elif [ -e $IcingaRunFile ] ; then
     	    pproc=`ps -ef |grep $IcingaPID |grep -v grep `
     	    echo "Icinga Process PID file present"
-    	     if [ -z $pproc ] ; then
+    	     if [ -z "$pproc" ] ; then
         	rm -f $IcingaRunFile
     		echo "PID file removed and $IcingaPID process is not active on system"
 	     fi





More information about the icinga-checkins mailing list