Repository: cloudstack
Updated Branches:
  refs/heads/4.4 ffd877595 -> df4a21ae3


add conntrackd logrotate for systemvms, dont start conntrackd on logrotate if 
it isnt running


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/df4a21ae
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/df4a21ae
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/df4a21ae

Branch: refs/heads/4.4
Commit: df4a21ae3dbb8bd4dad0bdb759990e9b90a9dc09
Parents: ffd8775
Author: Marcus Sorensen <[email protected]>
Authored: Sat Apr 5 00:30:28 2014 -0600
Committer: Marcus Sorensen <[email protected]>
Committed: Sat Apr 5 00:34:09 2014 -0600

----------------------------------------------------------------------
 .../patches/debian/config/etc/logrotate.d/conntrackd   | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/df4a21ae/systemvm/patches/debian/config/etc/logrotate.d/conntrackd
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/logrotate.d/conntrackd 
b/systemvm/patches/debian/config/etc/logrotate.d/conntrackd
new file mode 100644
index 0000000..d09d752
--- /dev/null
+++ b/systemvm/patches/debian/config/etc/logrotate.d/conntrackd
@@ -0,0 +1,13 @@
+/var/log/conntrackd-stats.log {
+    daily
+    rotate 2
+    missingok
+    compress
+    delaycompress
+
+    postrotate
+        if [ -e /var/run/conntrackd.sock ]; then
+            invoke-rc.d conntrackd restart > /dev/null
+        fi
+    endscript
+}

Reply via email to