[Groonga-commit] groonga/groonga [master] deb rpm: fix to check PIDFILE on try-restart

Back to archive index

HAYASHI Kentaro null+****@clear*****
Wed Sep 12 13:18:58 JST 2012


HAYASHI Kentaro	2012-09-12 13:18:58 +0900 (Wed, 12 Sep 2012)

  New Revision: 8a8dbefde24f85a7424c30dc9e4f0dae0885ddd9
  https://github.com/groonga/groonga/commit/8a8dbefde24f85a7424c30dc9e4f0dae0885ddd9

  Log:
    deb rpm: fix to check PIDFILE on try-restart

  Modified files:
    data/scripts/groonga-httpd-restart

  Modified: data/scripts/groonga-httpd-restart (+1 -2)
===================================================================
--- data/scripts/groonga-httpd-restart    2012-09-12 12:25:56 +0900 (0238602)
+++ data/scripts/groonga-httpd-restart    2012-09-12 13:18:58 +0900 (3524006)
@@ -21,8 +21,7 @@ wait_until_process_is_finished () {
 }
 
 if [ "$1" = "try-restart" ]; then
-	WORKING=`pidofproc groonga-httpd`
-	if [ -z "$WORKING" ]; then
+	if [ ! -f "$PIDFILE" ]; then
 		exit 0
 	fi
 fi
-------------- next part --------------
HTML����������������������������...
Download 



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