From cd4eaca378643e3fae9cc9fcf2119cae6ba97d74 Mon Sep 17 00:00:00 2001 From: pks Date: Mon, 10 May 2021 13:26:26 +0200 Subject: proper daemon --- config/logrotate/weather-logger-receiver | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 config/logrotate/weather-logger-receiver (limited to 'config/logrotate/weather-logger-receiver') 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 +} -- cgit v1.2.3