HAYASHI Kentaro
null+****@clear*****
Fri Sep 7 18:24:49 JST 2012
HAYASHI Kentaro 2012-09-07 18:24:49 +0900 (Fri, 07 Sep 2012) New Revision: e5f208a37a091a7e0940cca015f94d7219ce5da1 https://github.com/groonga/groonga/commit/e5f208a37a091a7e0940cca015f94d7219ce5da1 Log: deb rpm: support try-restart Modified files: data/scripts/groonga-httpd-restart Modified: data/scripts/groonga-httpd-restart (+7 -0) =================================================================== --- data/scripts/groonga-httpd-restart 2012-09-07 18:12:08 +0900 (28fe4b3) +++ data/scripts/groonga-httpd-restart 2012-09-07 18:24:49 +0900 (09098af) @@ -20,6 +20,13 @@ until_process_is_finished () { timeout $TIMEOUT tail -F /dev/null --pid=$1 } +if [ "$1" = "try-restart" ]; then + WORKING=`pidofproc groonga-httpd` + if [ -z "$WORKING" ]; then + exit 0 + fi +fi + killproc -p $PIDFILE ${GROONGA_HTTPD} -USR2 until_file_is_created $OLD_PIDFILE -------------- next part -------------- HTML����������������������������...Download