1234567891011121314151617181920 |
- /home/huginn/huginn/log/*.log {
- daily
- missingok
- rotate 180
- # must use with delaycompress below
- compress
- dateext
- # this is important if using "compress" since we need to call
- # the "lastaction" script below before compressing:
- delaycompress
- # note the lack of the evil "copytruncate" option in this
- # config. Unicorn supports the USR1 signal and we send it
- # as our "lastaction" action:
- lastaction
- pid=/home/huginn/huginn/tmp/pids/unicorn.pid
- if test -s $pid; then kill -USR1 "$(cat $pid)"; fi
- endscript
- }
|