diff options
Diffstat (limited to 'config/logrotate')
-rw-r--r-- | config/logrotate/weather-logger-receiver | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/logrotate/weather-logger-receiver b/config/logrotate/weather-logger-receiver new file mode 100644 index 0000000..c83fbd5 --- /dev/null +++ b/config/logrotate/weather-logger-receiver @@ -0,0 +1,12 @@ +/var/log/weather_logger/receiver.log { + rotate 7 + daily + compress + size 100k + nocreate + missingok + postrotate + kill -HUP `cat /run/weather_logger/receiver.pid` + rm -f /run/weather_logger/receiver.pid + endscript +} |