diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-02-26 18:09:49 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-02-26 18:09:49 +0100 |
commit | ac7a95223a6314cca6250495ea59c3cf7e46e89e (patch) | |
tree | e79d62b2ba780d19a8b576f746a0ac8875f5ce1d /src/afb-supervision.c | |
parent | fc460fb90672bc80d1f140a8f6cf72d7ad95353a (diff) |
supervisor: Make it a HTTP server
The supervisor now run as an HTTP server by default.
Change-Id: Ia0a654cd97c941f15b212c5364d739e2196662e4
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-supervision.c')
-rw-r--r-- | src/afb-supervision.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/afb-supervision.c b/src/afb-supervision.c index 1ff8f8b5..97595245 100644 --- a/src/afb-supervision.c +++ b/src/afb-supervision.c @@ -51,7 +51,8 @@ extern struct afb_config *main_config; /* api and apiset name */ -static const char supervision_apiname[] = AFS_SURPERVISION_APINAME_INTERNAL; +static const char supervision_apiname[] = AFS_SURPERVISION_APINAME; +static const char supervisor_apiname[] = AFS_SURPERVISOR_APINAME; /* path of the supervision socket */ static const char supervisor_socket_path[] = AFS_SURPERVISION_SOCKET; @@ -346,7 +347,7 @@ static void on_supervision_call(void *closure, struct afb_xreq *xreq) break; case Trace: if (!trace) - trace = afb_trace_create(supervision_apiname, NULL /* not bound to any session */); + trace = afb_trace_create(supervisor_apiname, NULL /* not bound to any session */); req = xreq_to_req(xreq); add = drop = NULL; |