jacob16bit
null+****@clear*****
Fri Jul 3 15:20:15 JST 2015
jacob16bit 2015-07-03 15:20:15 +0900 (Fri, 03 Jul 2015) New Revision: 48f1f727322bc7c4c74f6e42ef2ea6cbd74fb797 https://github.com/groonga/groonga/commit/48f1f727322bc7c4c74f6e42ef2ea6cbd74fb797 Merged 6ebbabf: Merge pull request #357 from jacob16bit/initscript Message: stopとrestartの終了ステータスを表示するようにした。 Modified files: data/init.d/redhat/groonga-httpd Modified: data/init.d/redhat/groonga-httpd (+16 -4) =================================================================== --- data/init.d/redhat/groonga-httpd 2015-06-19 14:56:24 +0900 (db6894c) +++ data/init.d/redhat/groonga-httpd 2015-07-03 15:20:15 +0900 (256457a) @@ -47,8 +47,14 @@ stop() { echo -n "Shutting down $name: " ${GROONGA_HTTPD} -s stop RETVAL=$? - echo - [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog + if [ $RETVAL -eq 0 ]; then + rm -f /var/lock/subsys/$prog + echo_success + echo + else + echo_failure + echo + fi return $RETVAL } @@ -56,8 +62,14 @@ restart() { echo -n "Restarting $name: " ${GROONGA_HTTPD_RESTART} RETVAL=$? - echo - [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog + if [ $RETVAL -eq 0 ]; then + touch /var/lock/subsys/$prog + echo_success + echo + else + echo_failure + echo + fi return $RETVAL } -------------- next part -------------- HTML����������������������������...Download