Merge "Rotate conntrackd's log files"
This commit is contained in:
commit
1c98684f16
|
@ -381,6 +381,10 @@ def enable_conntrack_service(himn, username):
|
|||
CONNTRACK_CONF_SAMPLE,
|
||||
'/etc/conntrackd/conntrackd.conf')
|
||||
|
||||
# Rotate log file for conntrack
|
||||
utils.scp(himn, username,
|
||||
'/etc/logrotate.d', 'etc/logrotate.d/conntrackd')
|
||||
|
||||
# Restart conntrackd service
|
||||
utils.ssh(himn, username, 'service', 'conntrackd', 'restart')
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
/var/log/conntrackd*.log {
|
||||
daily
|
||||
maxsize 50M
|
||||
rotate 7
|
||||
copytruncate
|
||||
missingok
|
||||
}
|
Loading…
Reference in New Issue