[Groonga-commit] groonga/groonga [master] httpd deb: revert to previous version

アーカイブの一覧に戻る

HAYASHI Kentaro null+****@clear*****
Mon Aug 27 13:12:26 JST 2012


HAYASHI Kentaro	2012-08-27 13:12:26 +0900 (Mon, 27 Aug 2012)

  New Revision: c66e7a82a15a1f1da367bea4fee37e3c766e6af7
  https://github.com/groonga/groonga/commit/c66e7a82a15a1f1da367bea4fee37e3c766e6af7

  Log:
    httpd deb: revert to previous version
    
    refs #1456

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

  Modified: packages/debian/groonga-httpd.init (+15 -2)
===================================================================
--- packages/debian/groonga-httpd.init    2012-08-27 13:01:19 +0900 (0471570)
+++ packages/debian/groonga-httpd.init    2012-08-27 13:12:26 +0900 (468acf8)
@@ -175,8 +175,21 @@ case "$1" in
 	;;
     restart)
 	log_daemon_msg "Restarting $DESC" "$NAME"
-	do_restart
-	log_end_msg $?
+	do_stop
+	case "$?" in
+	    0|1)
+		do_start
+		case "$?" in
+		    0) log_end_msg 0 ;;
+		    1) log_end_msg 1 ;; # Old process is still running
+		    *) log_end_msg 1 ;; # Failed to start
+		esac
+		;;
+	    *)
+		# Failed to stop
+		log_end_msg 1
+		;;
+	esac
 	;;
     status)
 	do_status
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る