diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-03-13 15:16:26 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-03-13 15:16:26 +0100 |
commit | 7cd20a135f6d2df212fb6aefdc3ee0a6949a740d (patch) | |
tree | 8a487824a9ecd7ead7b7d6bdc8e53408f9d89654 | |
parent | 4291309fc7d24e11bb15378e980856fa00ac7da1 (diff) |
notify systemd of being started
Change-Id: I10251b0800ac44e59d2a17ebd202c9f55c5c9196
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -28,6 +28,7 @@ #include <sys/wait.h> #include <systemd/sd-event.h> +#include <systemd/sd-daemon.h> #include "afb-config.h" #include "afb-hswitch.h" @@ -455,6 +456,7 @@ int main(int argc, char *argv[]) // infinite loop eventloop = afb_common_get_event_loop(); + sd_notify(1, "READY=1"); for (;;) sd_event_run(eventloop, 30000000); |