uwsgi icon indicating copy to clipboard operation
uwsgi copied to clipboard

Signal a reload to the workers

Open anbcodes opened this issue 5 months ago • 0 comments

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.

anbcodes avatar Sep 06 '24 17:09 anbcodes