]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Switched from restarting daemons to copytruncate for logrotate.
authorThomas Goirand <thomas@goirand.fr>
Thu, 29 May 2014 05:59:51 +0000 (13:59 +0800)
committerThomas Goirand <thomas@goirand.fr>
Thu, 29 May 2014 06:01:44 +0000 (14:01 +0800)
Rewritten-From: 117c2ff886591cc52dee9638841ce5a4aa1b5b15

xenial/debian/changelog
xenial/debian/cinder-api.logrotate
xenial/debian/cinder-backup.logrotate
xenial/debian/cinder-scheduler.logrotate
xenial/debian/cinder-volume.logrotate

index 14bdd30770510f59af469839e0fa8bb376b4901b..a95ceec18eb4259a477930cdda6f6f92911b1c41 100644 (file)
@@ -1,3 +1,9 @@
+cinder (2014.1-6) unstable; urgency=medium
+
+  * Switched from restarting daemons to copytruncate in logrotate.
+
+ -- Thomas Goirand <zigo@debian.org>  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.
index 7ae16ebdbdae2bc6f7ca21951d836e00abd1c856..c7a981e583228230a2b0ff875539fa3cca7398c9 100644 (file)
@@ -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
 }
index 2e9043106c7aacec9fded00f86a2de1b9125aa19..68c6d58ba74a17173a5abf25d16db374a2e7a82a 100644 (file)
@@ -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
 }
index b1109e29b0ece70f7afbaf1b1e882488c5e768e6..c09beb0473f8cb57f02000028033ed2525fb47cc 100644 (file)
@@ -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
 }
index f75700d17c88b460c13ccdfe3228ed4d8e1cbda8..1f5fca8d61d0bed7c13f8a1041702c5b167a9d39 100644 (file)
@@ -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
 }