alexvollmer/daemon-spawn — Issue #15: Option to force reopen of log file.
Author: hsanson
Created: 2012-01-18 06:46:09+00:00
State: open

When running logrotate to rotate logs generated by daemon-spawn I need to restart the daemon in the postrotate script of logrotate. This works ok but it can take a long time since my daemons load the rails environment each time they start.

Is there a simple way (maybe a signal) that would tell daemon-spawn to reopen it's log file. This would be far more efficient that reloading the whole rails environment on each logrotate.