The monitoring daemon should always be alive, therefore it's added to the
watcher.

Signed-off-by: Michele Tartara <[email protected]>
---
 lib/watcher/__init__.py |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/watcher/__init__.py b/lib/watcher/__init__.py
index a4fb16e..801d640 100644
--- a/lib/watcher/__init__.py
+++ b/lib/watcher/__init__.py
@@ -96,6 +96,10 @@ def StartNodeDaemons():
   # start confd as well. On non candidates it will be in disabled mode.
   if constants.ENABLE_CONFD:
     utils.EnsureDaemon(constants.CONFD)
+  # start mond as well: all nodes need monitoring
+  if constants.ENABLE_MOND:
+    utils.EnsureDaemon(constants.MOND)
+
 
 
 def RunWatcherHooks():
-- 
1.7.10.4

Reply via email to