Potential fix for shutdown order of services#4891
Closed
iamperson347 wants to merge 1 commit intoopnsense:masterfrom
Closed
Potential fix for shutdown order of services#4891iamperson347 wants to merge 1 commit intoopnsense:masterfrom
iamperson347 wants to merge 1 commit intoopnsense:masterfrom
Conversation
fichtner
added a commit
that referenced
this pull request
Apr 7, 2021
Suggested by: David Mora PR: #4891
Member
|
Hi David, Thanks for your patch. tail -r wasn't working on space-separated list so I rewrote it via 7316071. Can you try it on your end? Thanks, |
Contributor
Author
|
Hi @fichtner, It looks like the version you put together works as intended. ntopng is stopped before redis (as expected based on the reverse order). Thank you for getting this in place! |
Member
|
Looks good then. Probably material for 21.1.5. Thank you. ❤️ |
AdSchellevis
pushed a commit
that referenced
this pull request
Apr 8, 2021
Suggested by: David Mora PR: #4891
AdSchellevis
pushed a commit
that referenced
this pull request
Aug 15, 2021
Suggested by: David Mora PR: #4891
oshogbo
pushed a commit
to DynFi/opnsense-core
that referenced
this pull request
Mar 3, 2022
Suggested by: David Mora PR: opnsense/core#4891
oshogbo
pushed a commit
to DynFi/opnsense-core
that referenced
this pull request
Mar 3, 2022
Suggested by: David Mora PR: opnsense/core#4891
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem:
It appears that, depending on what services are being utilized, a reboot may hang due to a dependent service being shut down prior to the depending service. The example here is redis and ntopng.
Note - this problem also affects upgrades that require a reboot. It also affects the reboot page within the opnsense GUI.
Proposed Fix:
I'm unsure if this fix would have any ill effects. However, when calling rc.freebsd with "stop", if we flip the order of services gathered by rcorder and shutdown services per the new list, it appears that reboots performs cleanly.
Other details: