mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-6885: rotate logs hourly on VR
This commit is contained in:
parent
6f2facfa39
commit
9875803cf7
@ -993,6 +993,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
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -21,7 +21,4 @@
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
postrotate
|
||||
/usr/bin/pkill socat > /dev/null
|
||||
endscript
|
||||
}
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
{
|
||||
rotate 7
|
||||
daily
|
||||
size 50M
|
||||
missingok
|
||||
notifempty
|
||||
delaycompress
|
||||
@ -26,6 +27,7 @@
|
||||
{
|
||||
rotate 10
|
||||
daily
|
||||
size 50M
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user