Kouhei Sutou
null+****@clear*****
Thu Aug 22 17:47:29 JST 2013
Kouhei Sutou 2013-08-22 17:47:29 +0900 (Thu, 22 Aug 2013) New Revision: 89b48bf5745ee8465472d108aa074c55a7f11f8c https://github.com/groonga/groonga/commit/89b48bf5745ee8465472d108aa074c55a7f11f8c Message: groonga-httpd-restart: report an error on service isn't started Modified files: data/scripts/groonga-httpd-restart Modified: data/scripts/groonga-httpd-restart (+3 -4) =================================================================== --- data/scripts/groonga-httpd-restart 2013-08-22 17:47:04 +0900 (feda3f8) +++ data/scripts/groonga-httpd-restart 2013-08-22 17:47:29 +0900 (f119252) @@ -58,10 +58,9 @@ stop_master () { kill -QUIT ${pid} } -if [ "$1" = "try-restart" ]; then - if [ ! -f "${PID_FILE}" ]; then - exit 0 - fi +if [ ! -f "${PID_FILE}" ]; then + echo "PID file isn't found. groonga-httpd may not be running: <${PID_FILE}>" + exit 1 fi OLD_PID=$(cat ${PID_FILE}) -------------- next part -------------- HTML����������������������������... 下載