[Groonga-commit] groonga/groonga [master] deb: add return code about the reason of failure

Back to archive index

HAYASHI Kentaro null+****@clear*****
Thu Sep 6 14:39:40 JST 2012


HAYASHI Kentaro	2012-09-06 14:39:40 +0900 (Thu, 06 Sep 2012)

  New Revision: 3e30209294801ecf5178bdd2a579202119faf831
  https://github.com/groonga/groonga/commit/3e30209294801ecf5178bdd2a579202119faf831

  Log:
    deb: add return code about the reason of failure

  Modified files:
    packages/debian/groonga-httpd.init

  Modified: packages/debian/groonga-httpd.init (+3 -2)
===================================================================
--- packages/debian/groonga-httpd.init    2012-09-06 14:35:46 +0900 (da20cb0)
+++ packages/debian/groonga-httpd.init    2012-09-06 14:39:40 +0900 (7cdbc6d)
@@ -146,7 +146,8 @@ do_restart() {
     # Return
     #  0 if daemon has restarted.
     #  1 if daemon has failed to start new master process.
-    #  2 if daemon has failed to stop old worker process. (Rollback)
+    #  2 if daemon has failed to switch worker process.
+    #  3 if daemon has failed to stop old worker process. (Rollback)
 
     # Starting duplicated master and worker process.
     start-stop-daemon --stop --signal USR2 --quiet --pidfile $PIDFILE --name $NAME
@@ -177,7 +178,7 @@ do_restart() {
 	echo "Failed to stop old groonga-httpd worker process."
 	start-stop-daemon --stop --signal QUIT --quiet --pidfile $PIDFILE --name $NAME
 	echo "Rollback to old groonga-httpd master."
-	return 2
+	return 3
     fi
 
     # Stop old master process.
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index