- changed status to resolved
monit start service goes both ways in the dependency tree
If we try to stop service A, all services that depend on service A are stopped before stopping service A. That's expected.
When we start service A, any services that A depends on should be started. But monit also starts all the services that depend on A too.
so if the dependancy as A depends on B, B depends on C and D. Then starting B starts everything.
Is there a way to disable this so that a "monit start B" will only start C, D and B in that order and not start A at all??
Comments (6)
-
repo owner -
reporter Is there a link or repo from where I could get the latest monit with this fix?? Also, when would the next release of Monit be?
-
repo owner You can get a development version from bitbucket, but there is work in progress, so it's not suitable for production environment yet.
We have prepared a patched 5.14 version if you want to test issue
#248fix: https://mmonit.com/tmp/monit-5.14-p3.tar.gz -
repo owner - removed version
Removing version: 5.14 (automated comment)
-
Hello,
This issue appears to be still present at version 5.18. I have manually installed this version on Debian as the last stable version available was 5.4. Correct version was confirmed with "monit -V", the problem is still the same: any "monit start C" command traverses the dependency tree in both ways, and starts up all services.
-
repo owner @bacsog please create a new issue and provide full monit configuration for the dependant tree, enable logging and run monit in debug mode + provide sequence of actions and compare the result with the expected state. Attach monit log when the test finished.
- Log in to comment
Fix Issue
#248: Don't cascade start action to dependant services if only parent start was requested.→ <<cset 2559fe7c5f63>>