summaryrefslogtreecommitdiff
path: root/config/logrotate/weather-logger-receiver
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-05-10 13:26:26 +0200
committerpks <pks@pks.rocks>2021-05-10 13:26:26 +0200
commitcd4eaca378643e3fae9cc9fcf2119cae6ba97d74 (patch)
treeb99be6645feb4161f1cfd21c5efd097aa42cbbb7 /config/logrotate/weather-logger-receiver
parent281fa36a24f81d87543a7791252954414e161565 (diff)
proper daemon
Diffstat (limited to 'config/logrotate/weather-logger-receiver')
-rw-r--r--config/logrotate/weather-logger-receiver12
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
+}