From cddefe757b4047caa89b1c532df841377e041de9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 2 Feb 2015 12:00:49 +0100 Subject: [PATCH] Log rotate script sends SIGHUP and chown for log file --- debian/metaproxy.logrotate | 9 ++------- rpm/metaproxy.logrotate | 8 ++------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/debian/metaproxy.logrotate b/debian/metaproxy.logrotate index cb69b1a..239c58a 100644 --- a/debian/metaproxy.logrotate +++ b/debian/metaproxy.logrotate @@ -5,15 +5,10 @@ compress delaycompress notifempty - prerotate - if [ -f /var/run/metaproxy.pid ]; then - /etc/init.d/metaproxy checkconfig > /dev/null - - fi - endscript postrotate if [ -f /var/run/metaproxy.pid ]; then - /etc/init.d/metaproxy force-reload > /dev/null + kill -HUP `cat /var/run/metaproxy.pid` fi endscript + create 644 metaproxy root } diff --git a/rpm/metaproxy.logrotate b/rpm/metaproxy.logrotate index 6f51bb2..239c58a 100644 --- a/rpm/metaproxy.logrotate +++ b/rpm/metaproxy.logrotate @@ -5,14 +5,10 @@ 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 + kill -HUP `cat /var/run/metaproxy.pid` fi endscript + create 644 metaproxy root } -- 1.7.10.4