Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signal a reload to the workers #2667

Open
anbcodes opened this issue Sep 6, 2024 · 0 comments
Open

Signal a reload to the workers #2667

anbcodes opened this issue Sep 6, 2024 · 0 comments

Comments

@anbcodes
Copy link

anbcodes commented Sep 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant