From a559c2581b7bfa0f45a10a2dd1a149f7554603cf Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 8 Sep 2010 08:26:36 -0400 Subject: [PATCH] Add logrotate script --- rpm/metaproxy.logrotate | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 rpm/metaproxy.logrotate diff --git a/rpm/metaproxy.logrotate b/rpm/metaproxy.logrotate new file mode 100644 index 0000000..6592e97 --- /dev/null +++ b/rpm/metaproxy.logrotate @@ -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 +} -- 1.7.10.4