Skip to content

Commit df4a21a

Browse files
author
Marcus Sorensen
committed
add conntrackd logrotate for systemvms, dont start conntrackd on logrotate if it isnt running
1 parent ffd8775 commit df4a21a

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

  • systemvm/patches/debian/config/etc/logrotate.d
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/var/log/conntrackd-stats.log {
2+
daily
3+
rotate 2
4+
missingok
5+
compress
6+
delaycompress
7+
8+
postrotate
9+
if [ -e /var/run/conntrackd.sock ]; then
10+
invoke-rc.d conntrackd restart > /dev/null
11+
fi
12+
endscript
13+
}

0 commit comments

Comments
 (0)