summaryrefslogtreecommitdiff
path: root/storage/mroonga/vendor/groonga/packages/debian/groonga-server-http.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'storage/mroonga/vendor/groonga/packages/debian/groonga-server-http.logrotate')
-rw-r--r--storage/mroonga/vendor/groonga/packages/debian/groonga-server-http.logrotate17
1 files changed, 17 insertions, 0 deletions
diff --git a/storage/mroonga/vendor/groonga/packages/debian/groonga-server-http.logrotate b/storage/mroonga/vendor/groonga/packages/debian/groonga-server-http.logrotate
new file mode 100644
index 00000000000..8138715ef3d
--- /dev/null
+++ b/storage/mroonga/vendor/groonga/packages/debian/groonga-server-http.logrotate
@@ -0,0 +1,17 @@
+/var/log/groonga/*-http.log {
+ daily
+ missingok
+ rotate 30
+ compress
+ delaycompress
+ notifempty
+ create 640 groonga groonga
+ sharedscripts
+ postrotate
+ . /etc/default/groonga-server-http
+ if x"$ENABLE" = x"yes"; then
+ /usr/bin/curl --silent --output /dev/null \
+ "http://127.0.0.1:${PORT:-10041}/d/log_reopen"
+ fi
+ endscript
+}