/var/log/power_logger/logger.log { rotate 7 daily compress size 100k nocreate missingok postrotate kill -HUP `cat /run/power_logger/logger.pid` rm -f /run/power_logger/receiver.pid endscript }