[Groonga-commit] groonga/groonga [master] rpm centos: specify pid explicitly not to terminate GQTP/HTTP server at once

Back to archive index

HAYASHI Kentaro null+****@clear*****
Thu Oct 25 13:46:47 JST 2012


HAYASHI Kentaro	2012-10-25 13:46:47 +0900 (Thu, 25 Oct 2012)

  New Revision: 210b2d1ccd2682df4dbacadeaa9b1ad99d7fe095
  https://github.com/groonga/groonga/commit/210b2d1ccd2682df4dbacadeaa9b1ad99d7fe095

  Log:
    rpm centos: specify pid explicitly not to terminate GQTP/HTTP server at once

  Modified files:
    data/init.d/redhat/groonga-server-gqtp
    data/init.d/redhat/groonga-server-http

  Modified: data/init.d/redhat/groonga-server-gqtp (+2 -2)
===================================================================
--- data/init.d/redhat/groonga-server-gqtp    2012-10-25 13:33:33 +0900 (fb1c832)
+++ data/init.d/redhat/groonga-server-gqtp    2012-10-25 13:46:47 +0900 (5aec77c)
@@ -124,7 +124,7 @@ start() {
 stop() {
 	echo -n "Shutting down $name: "
 	send_command shutdown
-	killproc $prog
+	killproc -p $PIDFILE $prog
 	RETVAL=$?
 	echo
 	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$name
@@ -151,7 +151,7 @@ case "$1" in
 	restart
 	;;
     reload)
-	killproc $groonga -HUP
+	killproc -p $PIDFILE $groonga -HUP
 	;;
     condrestart)
 	[ -f /var/lock/subsys/$name ] && restart || :

  Modified: data/init.d/redhat/groonga-server-http (+2 -2)
===================================================================
--- data/init.d/redhat/groonga-server-http    2012-10-25 13:33:33 +0900 (b3be229)
+++ data/init.d/redhat/groonga-server-http    2012-10-25 13:46:47 +0900 (d7dba3d)
@@ -124,7 +124,7 @@ start() {
 stop() {
 	echo -n "Shutting down $name: "
 	send_command shutdown
-	killproc $prog
+	killproc -o $PIDFILE $prog
 	RETVAL=$?
 	echo
 	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$name
@@ -151,7 +151,7 @@ case "$1" in
 	restart
 	;;
     reload)
-	killproc $groonga -HUP
+	killproc -p $PIDFILE $groonga -HUP
 	;;
     condrestart)
 	[ -f /var/lock/subsys/$name ] && restart || :
-------------- next part --------------
HTML����������������������������...
Download 



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