Debian init script.
[metaproxy-moved-to-github.git] / debian / metaproxy.logrotate
diff --git a/debian/metaproxy.logrotate b/debian/metaproxy.logrotate
new file mode 100644 (file)
index 0000000..ae516f2
--- /dev/null
@@ -0,0 +1,13 @@
+/var/log/metaproxy.log {
+       weekly
+       missingok
+       rotate 4
+       compress
+       delaycompress
+       notifempty
+       postrotate
+               if [ -f /var/run/metaproxy.pid ]; then
+                       /etc/init.d/metaproxy force-reload > /dev/null
+               fi
+       endscript
+}