RPM: idzebra-2.0 includes init.d script
[idzebra-moved-to-github.git] / rpm / zebrasrv.logrotate
diff --git a/rpm/zebrasrv.logrotate b/rpm/zebrasrv.logrotate
new file mode 100644 (file)
index 0000000..d005fbf
--- /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
+                       /sbin/service zebrasrv restart > /dev/null
+               fi
+       endscript
+}