diff options
author | pks <pks@pks.rocks> | 2021-05-10 13:26:26 +0200 |
---|---|---|
committer | pks <pks@pks.rocks> | 2021-05-10 13:26:26 +0200 |
commit | cd4eaca378643e3fae9cc9fcf2119cae6ba97d74 (patch) | |
tree | b99be6645feb4161f1cfd21c5efd097aa42cbbb7 /config/logrotate | |
parent | 281fa36a24f81d87543a7791252954414e161565 (diff) |
proper daemon
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 +} |