summaryrefslogtreecommitdiffstats
path: root/src/main-afs-supervisor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main-afs-supervisor.c')
-rw-r--r--src/main-afs-supervisor.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main-afs-supervisor.c b/src/main-afs-supervisor.c
index b4250831..6b79c9c1 100644
--- a/src/main-afs-supervisor.c
+++ b/src/main-afs-supervisor.c
@@ -39,6 +39,7 @@
#include "verbose.h"
#include "jobs.h"
#include "process-name.h"
+#include "watchdog.h"
#if !defined(DEFAULT_SUPERVISOR_INTERFACE)
# define DEFAULT_SUPERVISOR_INTERFACE NULL
@@ -191,6 +192,14 @@ static void start(int signum, void *arg)
/* ready */
sd_notify(1, "READY=1");
+
+ /* activate the watchdog */
+#if HAS_WATCHDOG
+ if (watchdog_activate() < 0)
+ ERROR("can't start the watchdog");
+#endif
+
+ /* discover binders */
afs_supervisor_discover();
return;
error: