diff options
Diffstat (limited to 'src/main-afb-daemon.c')
-rw-r--r-- | src/main-afb-daemon.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main-afb-daemon.c b/src/main-afb-daemon.c index d825d803..705c69f9 100644 --- a/src/main-afb-daemon.c +++ b/src/main-afb-daemon.c @@ -36,7 +36,9 @@ #include <json-c/json.h> -#include <systemd/sd-daemon.h> +#if WITH_SYSTEMD +# include <systemd/sd-daemon.h> +#endif #include "afb-args.h" #include "afb-hswitch.h" @@ -885,7 +887,9 @@ static void start(int signum, void *arg) goto error; /* ready */ +#if WITH_SYSTEMD sd_notify(1, "READY=1"); +#endif /* activate the watchdog */ #if HAS_WATCHDOG |