Commit Graph

14 Commits (040b358770379d795ef07d4e5869437d46a7d68d)

Author SHA1 Message Date
Brian Coca a6ceec998d corrected version_added for new monit timeout opt 9 years ago
Björn Andersson 72155d40a3 monit: Set a high timeout waiting for status changes
Instead of waiting for up to a certain number of retries we set a high
timeout and only re-check every five seconds. Certain services can
take a minute or more to start and we want to avoid waisting resources
by polling too often.
9 years ago
Björn Andersson 262f2e9048 monit: Add version_added and type for new argument 9 years ago
Björn Andersson 5835d06a4e monit: Wait for pending state changes for reloads
@mpeters reported that we're not checking that the named service is
actually there after a reload. And that sometimes monit doesn't actually
return anything at all after a reload.
9 years ago
Björn Andersson + SU Sheng Loong f8fe5a2fcd monit: Add retry for pending/initializing services
If there are already ongoing actions for a process managed by monit, the
module would exit unsuccessfully. It could also give off false positives
because it did not determine whether the service was started/stopped
when it was in a pending state. Which might be turning the service off,
but the action was to start it.

For example "Running - pending stop" would be regarded as the service
running and "state=enabled" would do nothing.

This will make Ansible wait for the state to finalize, or a timeout decided
by the new `max_retries` option, before it decides what to do.

This fixes issue #244.
9 years ago
Greg DeKoenigsberg 004dedba8a Changes to author formatting, remove emails 10 years ago
Lorenzo Luconi Trombacchi 51b11fd1af status function was called twice 10 years ago
Lorenzo Luconi Trombacchi 16db10958b fix a problem with status detection after unmonitor command 10 years ago
Lorenzo Luconi Trombacchi 2bcb0d4c08 added lower function for statuses 10 years ago
Brian Coca bceeba224f fix doc parsing by correctly quoting author 10 years ago
Greg DeKoenigsberg 396b9d921a Add 10 years ago
Rob White 13285765a8 Keep 'process' lowercase to protect against upstream changes 10 years ago
Rob White 0f45029827 Changed status() to be case-sensitive of process 10 years ago
Michael DeHaan b1e789968b File extensions! 10 years ago