jacob16bit
null+****@clear*****
Fri Jun 19 14:56:24 JST 2015
jacob16bit 2015-06-19 14:56:24 +0900 (Fri, 19 Jun 2015) New Revision: 3caaca41e1a70a467378b04bfdd8de8f49c41730 https://github.com/groonga/groonga/commit/3caaca41e1a70a467378b04bfdd8de8f49c41730 Merged 5e1bc6f: Merge pull request #351 from jacob16bit/master Message: Update groonga-httpd-restart.in Modified files: data/scripts/groonga-httpd-restart.in Modified: data/scripts/groonga-httpd-restart.in (+8 -0) =================================================================== --- data/scripts/groonga-httpd-restart.in 2015-06-19 12:43:44 +0900 (2002544) +++ data/scripts/groonga-httpd-restart.in 2015-06-19 14:56:24 +0900 (2935570) @@ -31,6 +31,8 @@ elif [ -f /etc/sysconfig/${SERVICE_NAME} ]; then . /etc/sysconfig/${SERVICE_NAME} fi +OLD_PID_FILE=${PID_FILE}.oldbin + wait_until () { for n in $(seq ${TIMEOUT}); do if "$@"; then @@ -74,6 +76,11 @@ fi OLD_PID=$(cat ${PID_FILE}) start_master ${OLD_PID} +if ! wait_until [ -f ${OLD_PID_FILE} ]; then + echo "Failed to create old PID file: <${PID_FILE}>" + exit 1 +fi + if ! wait_until [ -f ${PID_FILE} ]; then echo "Failed to start new groonga-httpd master." exit 1 @@ -97,3 +104,4 @@ fi stop_master ${OLD_PID} exit $? + -------------- next part -------------- HTML����������������������������...Descargar