Fix Metaproxy stops logging after check config failed MP-590
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 26 Jan 2015 13:56:53 +0000 (13:56 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 26 Jan 2015 13:57:09 +0000 (13:57 +0000)
rpm/metaproxy.logrotate

index aa4a91b..6f51bb2 100644 (file)
@@ -5,6 +5,11 @@
        compress
        delaycompress
        notifempty
+       prerotate
+               if [ -f /var/run/metaproxy.pid ]; then
+                       /sbin/service metaproxy configtest > /dev/null
+               fi
+       endscript
        postrotate
                if [ -f /var/run/metaproxy.pid ]; then
                        /sbin/service metaproxy reload > /dev/null