diff options
author | pks <pks@pks.rocks> | 2022-11-22 22:11:11 +0100 |
---|---|---|
committer | pks <pks@pks.rocks> | 2022-11-22 22:11:11 +0100 |
commit | d8f77f4312f713443d5b369432ab4b0413bfb8ec (patch) | |
tree | 92496712fc0ef27efa4872fb1868cdc879a3f582 /config/logrotate | |
parent | e5b0a6660a898f6b60f11d6c3915fb813d06d5f8 (diff) |
Diffstat (limited to 'config/logrotate')
-rw-r--r-- | config/logrotate/power-logger | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/logrotate/power-logger b/config/logrotate/power-logger new file mode 100644 index 0000000..089db74 --- /dev/null +++ b/config/logrotate/power-logger @@ -0,0 +1,12 @@ +/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 +} |