Repository navigation
Description
The document at https://docs.saltstack.com/en/latest/ref/states/all/salt.states.service.html is too confusing for its own good when it comes to the watching. The description at salt.states.service.mod_watch doesn't go into any nuance, it just says:
"The service watcher, called to invoke the watch command."
If the user looks that up, they will miss some of the nuance from the general section:
"By default if a service is triggered to refresh due to a watch statement the service is by default restarted."
This sentence should be moved or copied under mod_watch.
Also, the term "by default" is repeated twice in the same sentence, so one of those should be removed.
Furthermore, the descriptions of options are problematic:
"Use reload instead of the default restart (exclusive option with full_restart, defaults to reload if both are used)"
Please rephrase the part in parenthesis, it sounds like it's trying to map boolean logic into simple English, but it's not actually succeeding, since the phrase "Y = Exclusive option with X" is a bad translation of XOR - just say "Y cannot be combined with X". Pseudo-code would have been more readable than this :)
"Use service.full_restart instead of restart (exclusive option with reload)"
Ditto for the parenthesized part.
In context of a state named "service", the reference to "service.full_restart", which I assume is to the module named "service", is unclear. Especially when one can't actually find that at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.service.html
Also, somewhere in there it wouldn't hurt to explain briefly what is meant by "full" restart - someone might think it's service(8)'s --full-restart, but it could also be assumed to be the module running a stop followed by a start itself, or maybe some third option I'm not currently acquainted with.
Please fix this. TIA.
Activity
gtmanfred commentedon Apr 21, 2017
Would you mind helping us clean up these documents?
Sometimes we are far to familiar with what is going on underneath that we are unable to write clear documentation and would greatly appreciate assistance in cleaning them up.
Thanks!
Daniel
stale commentedon Oct 6, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
shallot commentedon Oct 8, 2018
This all still applies
stale commentedon Oct 8, 2018
Thank you for updating this issue. It is no longer marked as stale.
rallytime commentedon Oct 8, 2018
@MTecknology You've been knocking out some of these documentation discrepancies lately. Perhaps you'd like to help out here as well?
MTecknology commentedon Oct 8, 2018
@shallot Feel free to review, particularly the bit about what mod_watch() is.
Merge pull request #49940 from MTecknology/docs-fix-40819
Clean up documentation/language in service state. (Fixes saltstack#40819