summaryrefslogtreecommitdiff
path: root/config/logrotate/power-logger
diff options
context:
space:
mode:
Diffstat (limited to 'config/logrotate/power-logger')
-rw-r--r--config/logrotate/power-logger12
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
+}