mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
add conntrackd logrotate for systemvms, dont start conntrackd on logrotate if it isnt running
This commit is contained in:
parent
94ebc90877
commit
6b7f91d770
13
systemvm/patches/debian/config/etc/logrotate.d/conntrackd
Normal file
13
systemvm/patches/debian/config/etc/logrotate.d/conntrackd
Normal file
@ -0,0 +1,13 @@
|
||||
/var/log/conntrackd-stats.log {
|
||||
daily
|
||||
rotate 2
|
||||
missingok
|
||||
compress
|
||||
delaycompress
|
||||
|
||||
postrotate
|
||||
if [ -e /var/run/conntrackd.sock ]; then
|
||||
invoke-rc.d conntrackd restart > /dev/null
|
||||
fi
|
||||
endscript
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user