Re: [resque] log rotation in resque
- Luke Antins
- 2012-08-14 @ 23:00
Are you redirecting the STDOUT logging to rescue.log?
If so, take a look here:
Or is your worker code logging to a file?
If so, you'll want to register for a signal like HUP yourself and call
the appropriate methods to open a new log file.
Hope this helps.
On 9 August 2012 17:19, Michal Muczynski <firstname.lastname@example.org> wrote:
> Hello all,
> I'm having a problem with logrotating resque.log. I couldn't find an option
> to reload resque process. I haven't find information about possible use of
> -HUP signal, -USR1 is reserved for killing child processes.
> I'd be very grateful if you could point me how to force resque to reload
> which is neccessary for rotating logs. As a workaround I can -QUIT resque
> and use god to start it again, but I would rather to use only logrotate
> machnism for accompish the job.
> thanks in advance!
> Michal Muczynski