Properly reopen python daemon log files after rotation.
[sliver-openvswitch.git] / debian / openvswitch-switch.logrotate
1 /var/log/openvswitch/*.log {
2     daily
3     compress
4     create 640 root adm
5     delaycompress
6     missingok
7     rotate 30
8     postrotate
9     # Tell Open vSwitch daemons to reopen their log files
10     for pidfile in `cd /var/run/openvswitch && echo *.pid`; do
11         ovs-appctl -t "${pidfile%%.pid}" vlog/reopen
12     done
13     endscript
14 }