huginn 543 B

1234567891011121314151617181920
  1. /home/huginn/huginn/log/*.log {
  2. daily
  3. missingok
  4. rotate 180
  5. # must use with delaycompress below
  6. compress
  7. dateext
  8. # this is important if using "compress" since we need to call
  9. # the "lastaction" script below before compressing:
  10. delaycompress
  11. # note the lack of the evil "copytruncate" option in this
  12. # config. Unicorn supports the USR1 signal and we send it
  13. # as our "lastaction" action:
  14. lastaction
  15. pid=/home/huginn/huginn/tmp/pids/unicorn.pid
  16. if test -s $pid; then kill -USR1 "$(cat $pid)"; fi
  17. endscript
  18. }