From 117c2ff886591cc52dee9638841ce5a4aa1b5b15 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Thu, 29 May 2014 13:59:51 +0800 Subject: [PATCH] Switched from restarting daemons to copytruncate for logrotate. --- debian/changelog | 6 ++++++ debian/cinder-api.logrotate | 8 +------- debian/cinder-backup.logrotate | 8 +------- debian/cinder-scheduler.logrotate | 8 +------- debian/cinder-volume.logrotate | 8 +------- 5 files changed, 10 insertions(+), 28 deletions(-) diff --git a/debian/changelog b/debian/changelog index 14bdd3077..a95ceec18 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +cinder (2014.1-6) unstable; urgency=medium + + * Switched from restarting daemons to copytruncate in logrotate. + + -- Thomas Goirand Thu, 29 May 2014 14:01:00 +0800 + cinder (2014.1-5) unstable; urgency=medium * Disable https for the default keystone conf, as this makes our CI fail. diff --git a/debian/cinder-api.logrotate b/debian/cinder-api.logrotate index 7ae16ebdb..c7a981e58 100644 --- a/debian/cinder-api.logrotate +++ b/debian/cinder-api.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service cinder-api restart >/dev/null 2>&1 || true - else - invoke-rc.d cinder-api restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } diff --git a/debian/cinder-backup.logrotate b/debian/cinder-backup.logrotate index 2e9043106..68c6d58ba 100644 --- a/debian/cinder-backup.logrotate +++ b/debian/cinder-backup.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service cinder-backup restart >/dev/null 2>&1 || true - else - invoke-rc.d cinder-backup restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } diff --git a/debian/cinder-scheduler.logrotate b/debian/cinder-scheduler.logrotate index b1109e29b..c09beb047 100644 --- a/debian/cinder-scheduler.logrotate +++ b/debian/cinder-scheduler.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service cinder-scheduler restart >/dev/null 2>&1 || true - else - invoke-rc.d cinder-scheduler restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } diff --git a/debian/cinder-volume.logrotate b/debian/cinder-volume.logrotate index f75700d17..1f5fca8d6 100644 --- a/debian/cinder-volume.logrotate +++ b/debian/cinder-volume.logrotate @@ -4,11 +4,5 @@ compress delaycompress notifempty - postrotate - if dpkg-vendor --derives-from ubuntu ; then - service cinder-volume restart >/dev/null 2>&1 || true - else - invoke-rc.d cinder-volume restart >/dev/null 2>&1 || true - fi - endscript + copytruncate } -- 2.45.2