Closed Elhodred closed 8 years ago
Nice! Very interesting!
You don't need this patch, Starman has an option to pass Net::Server options in net_server_args
.
Sometimes I think I'm blind. You are right, I didn't realise about net_server_args. Thanks.
As Net::Server is able to use Log::Log4perl as logger, we can leverage it and use some of the advanced options that Log4perl provides. For instance, a USR1 signal can be used to recreate the logs (hello logrotate). Here an example:
With that example, you can remove /var/log/test.log, send a USR1 signal to the master process and the file will be recreated.