You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ap...@apache.org on 2015/03/30 10:19:55 UTC
git commit: updated refs/heads/master to 6ac06e5
Repository: cloudstack
Updated Branches:
refs/heads/master 02d322189 -> 6ac06e5e5
CLOUDSTACK-6885: rotate logs hourly on VR
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/6ac06e5e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/6ac06e5e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/6ac06e5e
Branch: refs/heads/master
Commit: 6ac06e5e5e3ceed4a3e3a86ea5f82ffb59c266f2
Parents: 02d3221
Author: Abhinandan Prateek <ab...@shapeblue.com>
Authored: Mon Mar 30 11:36:11 2015 +0530
Committer: Abhinandan Prateek <ab...@shapeblue.com>
Committed: Mon Mar 30 13:49:23 2015 +0530
----------------------------------------------------------------------
systemvm/patches/debian/config/etc/init.d/cloud-early-config | 4 ++++
systemvm/patches/debian/config/etc/logrotate.conf | 2 +-
systemvm/patches/debian/config/etc/logrotate.d/cloud | 3 ---
systemvm/patches/debian/config/etc/logrotate.d/rsyslog | 2 ++
4 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6ac06e5e/systemvm/patches/debian/config/etc/init.d/cloud-early-config
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/init.d/cloud-early-config b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
index 729b58f..5a2ee6f 100755
--- a/systemvm/patches/debian/config/etc/init.d/cloud-early-config
+++ b/systemvm/patches/debian/config/etc/init.d/cloud-early-config
@@ -995,6 +995,10 @@ setup_router() {
sed -i "s/-A INPUT -i eth0 -p udp -m udp --dport 53 -j ACCEPT/-A INPUT -i eth0 -p udp -m udp --dport 53 -s $DHCP_RANGE\/$CIDR_SIZE -j ACCEPT/g" /etc/iptables/rules
sed -i "s/-A INPUT -i eth0 -p tcp -m tcp --dport 53 -j ACCEPT/-A INPUT -i eth0 -p tcp -m tcp --dport 53 -s $DHCP_RANGE\/$CIDR_SIZE -j ACCEPT/g" /etc/iptables/rules.v4
sed -i "s/-A INPUT -i eth0 -p tcp -m tcp --dport 53 -j ACCEPT/-A INPUT -i eth0 -p tcp -m tcp --dport 53 -s $DHCP_RANGE\/$CIDR_SIZE -j ACCEPT/g" /etc/iptables/rules
+
+ #setup hourly logrotate
+ mv -n /etc/cron.daily/logrotate /etc/cron.hourly 2>&1
+
}
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6ac06e5e/systemvm/patches/debian/config/etc/logrotate.conf
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/logrotate.conf b/systemvm/patches/debian/config/etc/logrotate.conf
index 59a6242..6b5fcc6 100644
--- a/systemvm/patches/debian/config/etc/logrotate.conf
+++ b/systemvm/patches/debian/config/etc/logrotate.conf
@@ -5,7 +5,7 @@ rotate 5
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
-dateext
+#dateext
# max size 50M
size 50M
# RPM packages drop log rotation information into this directory
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6ac06e5e/systemvm/patches/debian/config/etc/logrotate.d/cloud
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/logrotate.d/cloud b/systemvm/patches/debian/config/etc/logrotate.d/cloud
index 617b09b..5d95942 100644
--- a/systemvm/patches/debian/config/etc/logrotate.d/cloud
+++ b/systemvm/patches/debian/config/etc/logrotate.d/cloud
@@ -21,7 +21,4 @@
notifempty
compress
delaycompress
- postrotate
- /usr/bin/pkill socat > /dev/null
- endscript
}
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/6ac06e5e/systemvm/patches/debian/config/etc/logrotate.d/rsyslog
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/etc/logrotate.d/rsyslog b/systemvm/patches/debian/config/etc/logrotate.d/rsyslog
index faa8776..5803c43 100644
--- a/systemvm/patches/debian/config/etc/logrotate.d/rsyslog
+++ b/systemvm/patches/debian/config/etc/logrotate.d/rsyslog
@@ -2,6 +2,7 @@
{
rotate 7
daily
+ size 50M
missingok
notifempty
delaycompress
@@ -26,6 +27,7 @@
{
rotate 10
daily
+ size 50M
missingok
notifempty
compress