huginn 533B

    /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 test -s $pid && kill -USR1 "$(cat $pid)" endscript }