Add logrotate script
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 8 Sep 2010 12:26:36 +0000 (08:26 -0400)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 8 Sep 2010 12:26:36 +0000 (08:26 -0400)
rpm/metaproxy.logrotate [new file with mode: 0644]

diff --git a/rpm/metaproxy.logrotate b/rpm/metaproxy.logrotate
new file mode 100644 (file)
index 0000000..6592e97
--- /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
+                       /sbin/service metaproxy restart > /dev/null
+               fi
+       endscript
+}