[icinga-checkins] icinga.org: icinga-core/aflatto/ido: Add the removal of ido. sock when service is shutting down and verifying the file is not there when

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


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

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

Add the removal of ido.sock when service is shutting down and verifying the file is not there when
the service is starting new.

---

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

diff --git a/rc.ido2db.in b/rc.ido2db.in
index 30fbf6e..1c94408 100644
--- a/rc.ido2db.in
+++ b/rc.ido2db.in
@@ -157,7 +157,7 @@ case "$1" in
 				exit 1
 			else
 				echo "$servicename PID $Ido2dbPID not running. Removing lockfile."
-				rm -f $Ido2dbStatusFile $Ido2dbRunFile $Ido2dbLockDir/$Ido2dbLockFile $Ido2dbCommandFile
+				rm -f $Ido2dbStatusFile $Ido2dbRunFile $Ido2dbLockDir/$Ido2dbLockFile $Ido2dbCommandFile $Ido2dbSockFile
 			fi
 		fi
 		printf "Starting $servicename:"
@@ -196,7 +196,7 @@ case "$1" in
 		    kill9proc_ido2db
  		else
  		    echo "done."
-		    rm -f $Ido2dbStatusFile $Ido2dbRunFile $Ido2dbLockDir/$Ido2dbLockFile $Ido2dbCommandFile
+		    rm -f $Ido2dbStatusFile $Ido2dbRunFile $Ido2dbLockDir/$Ido2dbLockFile $Ido2dbCommandFile  $Ido2dbSockFile
  		fi
 
 		;;





More information about the icinga-checkins mailing list