From: Thomas Goirand Date: Thu, 29 May 2014 05:59:51 +0000 (+0800) Subject: Switched from restarting daemons to copytruncate for logrotate. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=1c76122fa44ed9dd59e6282590f7faa0635d55f2;p=openstack-build%2Fcinder-build.git Switched from restarting daemons to copytruncate for logrotate. Rewritten-From: 117c2ff886591cc52dee9638841ce5a4aa1b5b15 --- diff --git a/xenial/debian/changelog b/xenial/debian/changelog index 14bdd3077..a95ceec18 100644 --- a/xenial/debian/changelog +++ b/xenial/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/xenial/debian/cinder-api.logrotate b/xenial/debian/cinder-api.logrotate index 7ae16ebdb..c7a981e58 100644 --- a/xenial/debian/cinder-api.logrotate +++ b/xenial/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/xenial/debian/cinder-backup.logrotate b/xenial/debian/cinder-backup.logrotate index 2e9043106..68c6d58ba 100644 --- a/xenial/debian/cinder-backup.logrotate +++ b/xenial/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/xenial/debian/cinder-scheduler.logrotate b/xenial/debian/cinder-scheduler.logrotate index b1109e29b..c09beb047 100644 --- a/xenial/debian/cinder-scheduler.logrotate +++ b/xenial/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/xenial/debian/cinder-volume.logrotate b/xenial/debian/cinder-volume.logrotate index f75700d17..1f5fca8d6 100644 --- a/xenial/debian/cinder-volume.logrotate +++ b/xenial/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 }