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