From 0116ea5163191091a76d039fd1505dbc613c925e Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Thu, 29 May 2014 13:43:35 +0800 Subject: [PATCH] Switched from restarting daemons to copytruncate for logrotate. Change-Id: Id7529a82ba4baba916ced64e7b12b4e7a88520d3 --- debian/changelog | 6 ++++++ debian/neutron-common.logrotate | 1 + debian/neutron-dhcp-agent.logrotate | 8 +------- debian/neutron-l3-agent.logrotate | 8 +------- debian/neutron-lbaas-agent.logrotate | 8 +------- debian/neutron-metadata-agent.logrotate | 8 +------- debian/neutron-metering-agent.logrotate | 8 +------- debian/neutron-plugin-linuxbridge-agent.logrotate | 8 +------- debian/neutron-plugin-nec-agent.logrotate | 1 + debian/neutron-plugin-openvswitch-agent.logrotate | 8 +------- debian/neutron-server.logrotate | 8 +------- debian/neutron-vpn-agent.logrotate | 8 +------- 12 files changed, 17 insertions(+), 63 deletions(-) diff --git a/debian/changelog b/debian/changelog index 7233f613f..dcc13dfdd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +neutron (2014.1-5) unstable; urgency=medium + + * Switched from restarting daemons to copytruncate for logrotate. + + -- Thomas Goirand Thu, 29 May 2014 13:44:03 +0800 + neutron (2014.1-4) unstable; urgency=medium * Fixed linuxbridge init script. diff --git a/debian/neutron-common.logrotate b/debian/neutron-common.logrotate index a322f10b3..2002058d5 100644 --- a/debian/neutron-common.logrotate +++ b/debian/neutron-common.logrotate @@ -3,4 +3,5 @@ missingok compress delaycompress + copytruncate } diff --git a/debian/neutron-dhcp-agent.logrotate b/debian/neutron-dhcp-agent.logrotate index 7519f8c7f..b0b9384dc 100644 --- a/debian/neutron-dhcp-agent.logrotate +++ b/debian/neutron-dhcp-agent.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service neutron-dhcp-agent restart >/dev/null 2>&1 || true - else - invoke-rc.d neutron-dhcp-agent restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } diff --git a/debian/neutron-l3-agent.logrotate b/debian/neutron-l3-agent.logrotate index f89414806..8db107214 100644 --- a/debian/neutron-l3-agent.logrotate +++ b/debian/neutron-l3-agent.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service neutron-l3-agent restart >/dev/null 2>&1 || true - else - invoke-rc.d neutron-l3-agent restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } diff --git a/debian/neutron-lbaas-agent.logrotate b/debian/neutron-lbaas-agent.logrotate index 548c5d3be..078c729e8 100644 --- a/debian/neutron-lbaas-agent.logrotate +++ b/debian/neutron-lbaas-agent.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service neutron-lbaas-agent restart >/dev/null 2>&1 || true - else - invoke-rc.d neutron-lbaas-agent restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } diff --git a/debian/neutron-metadata-agent.logrotate b/debian/neutron-metadata-agent.logrotate index 2d5c02631..bad11bb0d 100644 --- a/debian/neutron-metadata-agent.logrotate +++ b/debian/neutron-metadata-agent.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service neutron-metadata-agent restart >/dev/null 2>&1 || true - else - invoke-rc.d neutron-metadata-agent restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } diff --git a/debian/neutron-metering-agent.logrotate b/debian/neutron-metering-agent.logrotate index a1db75adb..e3923c068 100644 --- a/debian/neutron-metering-agent.logrotate +++ b/debian/neutron-metering-agent.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service neutron-metering-agent restart >/dev/null 2>&1 || true - else - invoke-rc.d neutron-metering-agent restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } diff --git a/debian/neutron-plugin-linuxbridge-agent.logrotate b/debian/neutron-plugin-linuxbridge-agent.logrotate index 8535f498d..0a5b085e1 100644 --- a/debian/neutron-plugin-linuxbridge-agent.logrotate +++ b/debian/neutron-plugin-linuxbridge-agent.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service neutron-plugin-linuxbridge-agent restart >/dev/null 2>&1 || true - else - invoke-rc.d neutron-plugin-linuxbridge-agent restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } diff --git a/debian/neutron-plugin-nec-agent.logrotate b/debian/neutron-plugin-nec-agent.logrotate index a2595afcb..f204c8248 100644 --- a/debian/neutron-plugin-nec-agent.logrotate +++ b/debian/neutron-plugin-nec-agent.logrotate @@ -4,4 +4,5 @@ compress delaycompress notifempty + copytruncate } diff --git a/debian/neutron-plugin-openvswitch-agent.logrotate b/debian/neutron-plugin-openvswitch-agent.logrotate index b3a4b57d4..60e2b40b8 100644 --- a/debian/neutron-plugin-openvswitch-agent.logrotate +++ b/debian/neutron-plugin-openvswitch-agent.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service neutron-plugin-openvswitch-agent restart >/dev/null 2>&1 || true - else - invoke-rc.d neutron-plugin-openvswitch-agent restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } diff --git a/debian/neutron-server.logrotate b/debian/neutron-server.logrotate index 0bac800ac..eca7422c6 100644 --- a/debian/neutron-server.logrotate +++ b/debian/neutron-server.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service neutron-server restart >/dev/null 2>&1 || true - else - invoke-rc.d neutron-server restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } \ No newline at end of file diff --git a/debian/neutron-vpn-agent.logrotate b/debian/neutron-vpn-agent.logrotate index 89a4c9a3f..70adb899f 100644 --- a/debian/neutron-vpn-agent.logrotate +++ b/debian/neutron-vpn-agent.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service neutron-vpn-agent restart >/dev/null 2>&1 || true - else - invoke-rc.d neutron-vpn-agent restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } -- 2.45.2