[icinga-checkins] icinga.org: icinga-core/aflatto/ido: fixing ido2db detection of child procs

git at icinga.org git at icinga.org
Sat Apr 13 20:48:22 CEST 2013


Module: icinga-core
Branch: aflatto/ido
Commit: 0dbd8e1f29b629ff7e1cddeae88511b71db7f7fb
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=0dbd8e1f29b629ff7e1cddeae88511b71db7f7fb

Author: Assaf Flatto <icinga at flatto.net>
Date:   Sat Apr 13 19:48:09 2013 +0100

fixing ido2db detection of child procs

---

 rc.ido2db.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/rc.ido2db.in b/rc.ido2db.in
index 7fe8be7..a28c0bc 100644
--- a/rc.ido2db.in
+++ b/rc.ido2db.in
@@ -73,6 +73,7 @@ elif [ -f /etc/init.d/functions ]; then
         . /etc/init.d/functions
 fi
 
+# Find the system path to the 'ps' tool
 PS=`which ps`
 
 
@@ -115,7 +116,7 @@ printstatus_ido2db()
      if status_ido2db $1 $2; then
         ido2db_procs
 	echo "$servicename (pid $Ido2dbPID) is running with $PCHILD child procs ${PID_LIST%?}."
-	elif test $? -eq 2; then # this command will fail on solaris the "==" needed to be replaced with "-eq"
+	elif test $? -eq 2; then 
 		echo "$servicename is not running but subsystem locked"
 	else
 		echo "$servicename is not running"





More information about the icinga-checkins mailing list