8000 server: graceful reload and restart via SIGHUP/SIGUSR1 signals · Issue #5 · achimnol/aiotools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

server: graceful reload and restart via SIGHUP/SIGUSR1 signals #5

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 servic A7DB e and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
achimnol opened this issue Aug 14, 2017 · 1 comment
Open

server: graceful reload and restart via SIGHUP/SIGUSR1 signals #5

achimnol opened this issue Aug 14, 2017 · 1 comment
Labels

Comments

@achimnol
Copy link
Owner
  • Graceful reload: when the main program receives SIGUSR1, let it shutdown all workers and extra processes, call a restart callback, and re-spawn all workers and extra processes again. A restart callback is intended to read the (changed) configuration again, which is written by the user.
  • Graceful restart: when the main program receives SIGHUP, let it terminate completely and re-execute the whole process again, preferably with the same sys.argv and environment variables. Add an optional restart callback which is called after terminating workers but before calling user-defined main exit handler.

There may be required several design decision on what arguments to pass to callbacks and when to call them. Let's discuss and implement.

@Suckzoo
Copy link
Suckzoo commented Aug 15, 2017

#9

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

No branches or pull requests

2 participants
0