adding salt-minion restart option from official FAQ page #325
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.
I have run into an issue similar to those described in #136 . I was hoping to find a different solution then the one recently merged, mostly to not have another package dependency.
I found such a solution here, using the "bg" option in cmd.run:
https://docs.saltstack.com/en/latest/faq.html#what-is-the-best-way-to-restart-a-salt-minion-daemon-using-salt-after-upgrade
This has been working on all my Linux minions better then the salt-minion restart method used in the current formula. It should also work on Windows though I am not able to test that.
This PR changes the current default salt-minion restart behavior to that described in the linked FAQ. It should be backward compatible and add similar functionality to salt versions without the "bg" option.
Thoughts? Good idea? Bad idea?