Merge "Rotate conntrackd's log files"

This commit is contained in:
Jenkins 2016-12-27 06:54:58 +00:00 committed by Gerrit Code Review
commit 1c98684f16
2 changed files with 11 additions and 0 deletions

View File

@ -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')

View File

@ -0,0 +1,7 @@
/var/log/conntrackd*.log {
daily
maxsize 50M
rotate 7
copytruncate
missingok
}