[Groonga-commit] groonga/groonga at 68b1a0a [master] deb centos groonga-httpd: "restart" starts service if service isn't started

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Aug 22 17:32:44 JST 2013


Kouhei Sutou	2013-08-22 17:32:44 +0900 (Thu, 22 Aug 2013)

  New Revision: 68b1a0aa30e47b0d2a7c487174dadceca81dd531
  https://github.com/groonga/groonga/commit/68b1a0aa30e47b0d2a7c487174dadceca81dd531

  Message:
    deb centos groonga-httpd: "restart" starts service if service isn't started

  Modified files:
    data/init.d/redhat/groonga-httpd
    packages/debian/groonga-httpd.init

  Modified: data/init.d/redhat/groonga-httpd (+5 -1)
===================================================================
--- data/init.d/redhat/groonga-httpd    2013-08-22 17:24:45 +0900 (e6b6002)
+++ data/init.d/redhat/groonga-httpd    2013-08-22 17:32:44 +0900 (abd0de3)
@@ -121,7 +121,11 @@ case "$1" in
 		stop
 		;;
 	restart)
-		${GROONGA_HTTPD_RESTART}
+		if [ -f /var/lock/subsys/$prog ]; then
+			${GROONGA_HTTPD_RESTART}
+		else
+			start
+		fi
 		;;
 	reload)
 		killproc $groonga -HUP

  Modified: packages/debian/groonga-httpd.init (+5 -1)
===================================================================
--- packages/debian/groonga-httpd.init    2013-08-22 17:24:45 +0900 (9e1ac4d)
+++ packages/debian/groonga-httpd.init    2013-08-22 17:32:44 +0900 (f8814b0)
@@ -165,7 +165,11 @@ case "$1" in
 	;;
     restart)
 	log_daemon_msg "Restarting $DESC" "$NAME"
-	$DAEMON_RESTART
+	if [ -f ${PIDFILE} ]; then
+		$DAEMON_RESTART
+	else
+		do_start
+	fi
 	case "$?" in
 	    0) log_end_msg 0 ;;
 	    *) log_end_msg 1 ;;
-------------- next part --------------
HTML����������������������������...
다운로드 



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