HAYASHI Kentaro
null+****@clear*****
Tue Sep 4 18:33:01 JST 2012
HAYASHI Kentaro 2012-09-04 18:33:01 +0900 (Tue, 04 Sep 2012) New Revision: 0dbd8e03e9c0c04a0e20420b5e9fd67871ca492b https://github.com/groonga/groonga/commit/0dbd8e03e9c0c04a0e20420b5e9fd67871ca492b Log: rpm: add logrotate config files Added files: data/logrotate/Makefile.am data/logrotate/groonga-httpd data/logrotate/groonga-server Added: data/logrotate/Makefile.am (+9 -0) 100644 =================================================================== --- /dev/null +++ data/logrotate/Makefile.am 2012-09-04 18:33:01 +0900 (2c4a92f) @@ -0,0 +1,9 @@ + +scripts = groonga-server groonga-httpd + +if REDHAT_PLATFORM +logrotatedir = $(sysconfdir)/logrotate.d +dist_logrotate_SCRIPTS = $(scripts) +else +EXTRA_DIST = $(scripts) +endif Added: data/logrotate/groonga-httpd (+17 -0) 100644 =================================================================== --- /dev/null +++ data/logrotate/groonga-httpd 2012-09-04 18:33:01 +0900 (52116e3) @@ -0,0 +1,17 @@ +/var/log/groonga/httpd/*.log { + daily + missingok + rotate 30 + compress + delaycompress + notifempty + create 640 groonga groonga + sharedscripts + postrotate + . /etc/sysconfig/groonga-httpd + if x"$ENABLE" = x"yes"; then + /usr/bin/curl --silent --output /dev/null \ + "http://127.0.0.1:10041/d/log_reopen" + fi + endscript +} Added: data/logrotate/groonga-server (+21 -0) 100644 =================================================================== --- /dev/null +++ data/logrotate/groonga-server 2012-09-04 18:33:01 +0900 (2ffab88) @@ -0,0 +1,21 @@ +/var/log/groonga/*.log { + daily + missingok + rotate 30 + compress + delaycompress + notifempty + create 640 groonga groonga + sharedscripts + postrotate + . /etc/sysconfig/groonga + if x"$ENABLE" = x"yes"; then + if x"$PROTOCOL" = x"http"; then + /usr/bin/curl --silent --output /dev/null \ + "http://127.0.0.1:10041/d/log_reopen" + else + /usr/bin/groonga -c 127.0.0.1 log_reopen > /dev/null + fi + fi + endscript +} -------------- next part -------------- HTML����������������������������...Download