]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Restart daemons after logrotate
authorThomas Goirand <thomas@goirand.fr>
Mon, 3 Feb 2014 08:37:04 +0000 (16:37 +0800)
committerThomas Goirand <thomas@goirand.fr>
Mon, 3 Feb 2014 08:37:27 +0000 (16:37 +0800)
Change-Id: Ia989bdde7ae136c1e49a349cd3694276207ff7a3
(cherry picked from commit bd3e2763cb1fa4aca94f89295820e313d5d2e3f1)

debian/neutron-dhcp-agent.logrotate
debian/neutron-l3-agent.logrotate
debian/neutron-lbaas-agent.logrotate
debian/neutron-metadata-agent.logrotate
debian/neutron-metering-agent.logrotate
debian/neutron-plugin-linuxbridge-agent.logrotate
debian/neutron-plugin-openvswitch-agent.logrotate
debian/neutron-server.logrotate
debian/neutron-vpn-agent.logrotate

index c7527e5e5fb8aab82f4164f6154ebe4cc3f73e71..7519f8c7fcec99dfc5261619be73401122a11668 100644 (file)
@@ -4,4 +4,11 @@
     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
 }
index 4420fbf899ae2a916c40cc37b3fd3e8282088066..f89414806590819dc6e0a1496fd72db6b19f3e59 100644 (file)
@@ -4,4 +4,11 @@
     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
 }
index 5efb4dcd9386968acfe3f9ac1fbcc0b10b96917a..548c5d3be255ec9114a2d6e0239b809bf223b8de 100644 (file)
@@ -4,4 +4,11 @@
     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
 }
index 986234563d1d0f6ac268ffcf80e24ec7dbfbd78e..2d5c02631e69ed5c0c51c5bb59952c73b5a2260e 100644 (file)
@@ -4,4 +4,11 @@
     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
 }
index 4516cf8e1164f64a31838cea94a1763ef3608ba1..a1db75adb1fa48d80ffe688ef04ef5a5b11c1f49 100644 (file)
@@ -4,4 +4,11 @@
     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
 }
index 5ad23eabb1011e31950e0c701ea36fec4dac9c54..8535f498de849b285f5ed89ac5744e1fa037168e 100644 (file)
@@ -4,4 +4,11 @@
     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
 }
index 4d84710700696b4abcba81a6718fe04c2026e50f..b3a4b57d42d64ebf6e2ac758105c959ad327bdf6 100644 (file)
@@ -4,4 +4,11 @@
     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
 }
index 3b1817af85405bdeb667ad886abaa3b00e3414e3..0bac800acd9441cdff35730f93f2aa6809b1dec0 100644 (file)
@@ -4,4 +4,11 @@
     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
 }
\ No newline at end of file
index ac7a112f7a7fd279177416c12ef876d617ef2819..89a4c9a3fec2dad4de62784ac71715b2cc9349b9 100644 (file)
@@ -4,4 +4,11 @@
     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
 }