-
Notifications
You must be signed in to change notification settings - Fork 315
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
Deprecate and remove the reload hook #5307
Comments
Can you elaborate? Launcher owns the process, but the supervisor can still kill it and direct launcher to restart it. I must be missing what you're getting at. |
I mean that I'm not clear what running a script (the alternative to which is having the Launcher restart a service) would do to "reload" a service that wouldn't mess up the bookkeeping that the Launcher already does. |
Ah, I think I understand. If I think of it in terms of what is possible with |
I haven't fully plumbed the depths of Git history on this yet, but it seems that at some point that I'm not sure exactly how these wires got crossed, but if that is the case, it does suggest that |
See also #1838 |
Resolves #5305 #5306 #5307 Signed-off-by: David McNeil <[email protected]>
Resolves #5305 #5306 #5307 Signed-off-by: David McNeil <[email protected]> PR feedback Signed-off-by: David McNeil <[email protected]>
Resolves #5305 #5306 #5307 Signed-off-by: David McNeil <[email protected]> PR feedback Signed-off-by: David McNeil <[email protected]>
Resolves #5305 #5306 #5307 Signed-off-by: David McNeil <[email protected]> PR feedback Signed-off-by: David McNeil <[email protected]>
Resolves #5305 #5306 #5307 Signed-off-by: David McNeil <[email protected]> PR feedback Signed-off-by: David McNeil <[email protected]>
Resolves #5305 #5306 #5307 Signed-off-by: David McNeil <[email protected]> PR feedback Signed-off-by: David McNeil <[email protected]>
Resolves #5305 #5306 #5307 Signed-off-by: David McNeil <[email protected]> PR feedback Signed-off-by: David McNeil <[email protected]>
Resolves #5305 #5306 #5307 Signed-off-by: David McNeil <[email protected]> PR feedback Signed-off-by: David McNeil <[email protected]>
Resolved by #6668 |
Based on #5306 the intended purpose of the
reload
hook is unclear.Based on
habitat/components/sup/src/manager/service/mod.rs
Lines 272 to 295 in 01de8a1
reload
is intended to be a substitute for restarting the service, but it's not clear how this can actually work in practice, given that the Launcher is the thing that owns the actual process.If we re-organize the hook invocations as detailed in #5306, it's unclear what
reload
is really accomplishing. It is likely that it is a vestige of the time before the Launcher, and possibly before the multi-service Supervisor; we may lose nothing by removing it (subject to appropriate deprecation notices, of course).There are several other issues for hooks and other methods of dealing with various aspects of service shutdown that may be interesting to consider here:
The text was updated successfully, but these errors were encountered: