Add MonD to the watcher
authorMichele Tartara <mtartara@google.com>
Mon, 13 May 2013 14:05:08 +0000 (14:05 +0000)
committerMichele Tartara <mtartara@google.com>
Tue, 14 May 2013 16:59:26 +0000 (17:59 +0100)
The monitoring daemon should always be alive, therefore it's added to the
watcher.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

lib/watcher/__init__.py

index a4fb16e..801d640 100644 (file)
@@ -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():