Kouhei Sutou
null+****@clear*****
Tue Jul 7 12:53:13 JST 2015
Kouhei Sutou 2015-07-07 12:53:13 +0900 (Tue, 07 Jul 2015) New Revision: 3b41c719e49e0cb0eccff0c71d169fa3bb9fcd69 https://github.com/groonga/groonga/commit/3b41c719e49e0cb0eccff0c71d169fa3bb9fcd69 Message: logrotate: fix wrong daemon running check "ENABLE" isn't defined in sysconfig. Modified files: data/logrotate.d/redhat/groonga-httpd data/logrotate.d/redhat/groonga-server-gqtp data/logrotate.d/redhat/groonga-server-http Modified: data/logrotate.d/redhat/groonga-httpd (+1 -2) =================================================================== --- data/logrotate.d/redhat/groonga-httpd 2015-07-07 12:48:31 +0900 (443093c) +++ data/logrotate.d/redhat/groonga-httpd 2015-07-07 12:53:13 +0900 (0f526c7) @@ -8,8 +8,7 @@ create 640 groonga groonga sharedscripts postrotate - . /etc/sysconfig/groonga-httpd - if [ x"$ENABLE" = x"yes" ]; then + if [ -f /var/lock/subsys/groonga-httpd ]; then /usr/bin/curl --silent --output /dev/null \ "http://127.0.0.1:10041/d/log_reopen" fi Modified: data/logrotate.d/redhat/groonga-server-gqtp (+1 -2) =================================================================== --- data/logrotate.d/redhat/groonga-server-gqtp 2015-07-07 12:48:31 +0900 (fa7e825) +++ data/logrotate.d/redhat/groonga-server-gqtp 2015-07-07 12:53:13 +0900 (2df2d81) @@ -8,8 +8,7 @@ create 640 groonga groonga sharedscripts postrotate - . /etc/sysconfig/groonga-server-gqtp - if [ x"$ENABLE" = x"yes" ]; then + if [ -f /var/lock/subsys/groonga-server-gqtp ]; then /usr/bin/groonga --port "${PORT:-10043}" -c 127.0.0.1 \ log_reopen > /dev/null fi Modified: data/logrotate.d/redhat/groonga-server-http (+1 -2) =================================================================== --- data/logrotate.d/redhat/groonga-server-http 2015-07-07 12:48:31 +0900 (715331c) +++ data/logrotate.d/redhat/groonga-server-http 2015-07-07 12:53:13 +0900 (e269b6a) @@ -8,8 +8,7 @@ create 640 groonga groonga sharedscripts postrotate - . /etc/sysconfig/groonga-server-http - if [ x"$ENABLE" = x"yes" ]; then + if [ -f /var/lock/subsys/groonga-server-http ]; then /usr/bin/curl --silent --output /dev/null \ "http://127.0.0.1:${PORT:-10041}/d/log_reopen" fi -------------- next part -------------- HTML����������������������������...下載