]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Restart daemons after logrotate
authorThomas Goirand <thomas@goirand.fr>
Mon, 3 Feb 2014 08:13:55 +0000 (16:13 +0800)
committerThomas Goirand <thomas@goirand.fr>
Mon, 3 Feb 2014 08:13:55 +0000 (16:13 +0800)
Rewritten-From: e7d16b8dc4607ebfdc9c18be8f5c063efa32448a

xenial/debian/heat-api-cfn.logrotate
xenial/debian/heat-api-cloudwatch.logrotate
xenial/debian/heat-api.logrotate
xenial/debian/heat-engine.logrotate

index a533079f9de14e6d374066c4f9c60b3ae34a99ef..9e797577a99a1a825015269334bfc1a873e3bc82 100644 (file)
@@ -1,4 +1,12 @@
 /var/log/heat/api-cfn.log {
     daily
     missingok
+    compress
+    postrotate
+        if dpkg-vendor --derives-from ubuntu ; then
+            service heat-api-cfn restart >/dev/null 2>&1 || true
+        else
+            invoke-rc.d heat-api-cfn restart >/dev/null 2>&1 || true
+        fi
+    endscript
 }
index b89b06b6315ca40606d2fb5ae2e034f1232400c2..98f85891b859ec0a7cf7a297afd39ddd4f2b879d 100644 (file)
@@ -1,4 +1,12 @@
 /var/log/heat/api-cloudwatch.log {
     daily
     missingok
+    compress
+    postrotate
+        if dpkg-vendor --derives-from ubuntu ; then
+            service heat-api-cloudwatch restart >/dev/null 2>&1 || true
+        else
+            invoke-rc.d heat-api-cloudwatch restart >/dev/null 2>&1 || true
+        fi
+    endscript
 }
index 2a03cdbb5f8469a1566b6d7f3e1f122e5fc8a17c..60a661e397206b1cdbaf85ef9cf792b77f0502f6 100644 (file)
@@ -1,4 +1,12 @@
 /var/log/heat/api.log {
     daily
     missingok
+    compress
+    postrotate
+        if dpkg-vendor --derives-from ubuntu ; then
+            service heat-api restart >/dev/null 2>&1 || true
+        else
+            invoke-rc.d heat-api restart >/dev/null 2>&1 || true
+        fi
+    endscript
 }
index eebdeeeadf7a3df50d94b271ccc3c47afb49fe6d..ee0c32c0973d6a7da5955e728da381f9f877cfa9 100644 (file)
@@ -1,4 +1,12 @@
 /var/log/heat/engine.log {
     daily
     missingok
+    compress
+    postrotate
+        if dpkg-vendor --derives-from ubuntu ; then
+            service heat-engine restart >/dev/null 2>&1 || true
+        else
+            invoke-rc.d heat-engine restart >/dev/null 2>&1 || true
+        fi
+    endscript
 }