uwsgi
uwsgi copied to clipboard
Signal a reload to the workers
Is there a way to signal a reload to the workers (for example to reopen a log file)? In our situation, we are using the psgi plugin and need a way to tell our Perl scripts to reopen log files. In other programs, we have used SIGHUP to signal that the file needs reopened, but uwsgi traps SIGHUP and restarts the worker instead.
It would be helpful if there were an option to pass SIGHUP through to the Perl script instead of restarting it, or some other way to trigger a handler in the Perl code.