[Groonga-commit] groonga/groonga at e54deb7 [master] groonga-httpd-restart: use plural form for N values

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Aug 22 16:16:40 JST 2013


Kouhei Sutou	2013-08-22 16:16:40 +0900 (Thu, 22 Aug 2013)

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

  Message:
    groonga-httpd-restart: use plural form for N values

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

  Modified: data/scripts/groonga-httpd-restart (+4 -4)
===================================================================
--- data/scripts/groonga-httpd-restart    2013-08-22 16:11:30 +0900 (445cb6c)
+++ data/scripts/groonga-httpd-restart    2013-08-22 16:16:40 +0900 (217391c)
@@ -73,12 +73,12 @@ if ! wait_until [ -f "${PID_FILE}" ]; then
 fi
 PID=$(cat ${PID_FILE})
 
-OLD_WORKER_PROCESS=$(pgrep -P ${OLD_PID} | grep -v ${PID})
-for pid in ${OLD_WORKER_PROCESS}; do
+OLD_WORKER_PROCESSES=$(pgrep -P ${OLD_PID} | grep -v ${PID})
+for pid in ${OLD_WORKER_PROCESSES}; do
     wait_until ps --pid=${pid} > /dev/null
 done
-OLD_WORKER_PROCESS=$(pgrep -P ${OLD_PID} | grep -v ${PID})
-if [ -n "${OLD_WORKER_PROCESS}" ]; then
+OLD_WORKER_PROCESSES=$(pgrep -P ${OLD_PID} | grep -v ${PID})
+if [ -n "${OLD_WORKER_PROCESSES}" ]; then
     echo "Failed to stop old groonga-httpd worker process."
     killproc -p ${PID_FILE} ${GROONGA_HTTPD} -QUIT
     echo "Rollback to old groonga-httpd master."
-------------- next part --------------
HTML����������������������������...
Download 



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