Skip to content

please clarify documentation on service watch #40819

Closed

Description

@shallot

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

  1. gtmanfred commented on Apr 21, 2017

    @gtmanfred
    Contributor

    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

  2. added this to the Approved milestone on Apr 21, 2017
  3. added
    documentation
    on Apr 21, 2017
  4. stale commented on Oct 6, 2018

    @stale

    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.

  5. shallot commented on Oct 8, 2018

    @shallot
    Author

    This all still applies

  6. stale commented on Oct 8, 2018

    @stale

    Thank you for updating this issue. It is no longer marked as stale.

  7. rallytime commented on Oct 8, 2018

    @rallytime
    Contributor

    @MTecknology You've been knocking out some of these documentation discrepancies lately. Perhaps you'd like to help out here as well?

  8. MTecknology commented on Oct 8, 2018

    @MTecknology
    Contributor

    @shallot Feel free to review, particularly the bit about what mod_watch() is.

  9. added
    fixed-pls-verify
    on Oct 9, 2018
  10. added 2 commits that reference this issue on Oct 9, 2018
    dd651f2
    165b799
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationfixed-pls-verify

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions