[icinga-checkins] icinga.org: icinga-core/aflatto/ido: changing the "test" conditional to work in solaris

git at icinga.org git at icinga.org
Fri Apr 20 13:28:25 CEST 2012


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

Author: Assaf Flatto <icinga at flatto.net>
Date:   Fri Apr 20 11:10:09 2012 +0100

changing the "test" conditional to work in solaris

---

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

diff --git a/rc.ido2db.in b/rc.ido2db.in
index eeb64fa..30fbf6e 100644
--- a/rc.ido2db.in
+++ b/rc.ido2db.in
@@ -111,7 +111,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 $? == 2; then
+	elif test $? -eq 2; then # this command will fail on solaris the "==" needed to be replaced with "-eq"
 		echo "$servicename is not running but subsystem locked"
 	else
 		echo "$servicename is not running"





More information about the icinga-checkins mailing list