From 7cd20a135f6d2df212fb6aefdc3ee0a6949a740d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Mon, 13 Mar 2017 15:16:26 +0100 Subject: [PATCH] notify systemd of being started MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I10251b0800ac44e59d2a17ebd202c9f55c5c9196 Signed-off-by: José Bollo --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 3fb7fc1b..4ae8af5e 100644 --- a/src/main.c +++ b/src/main.c @@ -28,6 +28,7 @@ #include #include +#include #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); -- 2.16.6