diff options
author | José Bollo <jose.bollo@iot.bzh> | 2019-07-09 17:56:55 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-07-23 14:24:01 +0200 |
commit | daecef104cd2a6ac3e4436306e96ed48aea8271d (patch) | |
tree | 0115d25bc9476ba044b011802af9c3898e55bde2 /afm-api-supervisor.socket | |
parent | 056c53da68eaa007a7bcabf77ef3205b6ff04ca1 (diff) |
supervisor: Setup services for local API use
The supervisor only allowed external accesses.
This was wrong, it must also allow local access
through standard API. This commit fix it.
Bug-AGL: SPEC-2660
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Change-Id: Ifa1119a6b2f22c87b1dbe087206d9f51c4005a57
Diffstat (limited to 'afm-api-supervisor.socket')
-rw-r--r-- | afm-api-supervisor.socket | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/afm-api-supervisor.socket b/afm-api-supervisor.socket new file mode 100644 index 00000000..e55a267a --- /dev/null +++ b/afm-api-supervisor.socket @@ -0,0 +1,21 @@ +# afm-api-supervisor.socket.in + +[Unit] +Description=Service to start the API 'supervisor' + +DefaultDependencies=no + +Requires=afm-system-setup.service +After=afm-system-setup.service + +[Socket] +SmackLabel=* +SmackLabelIPIn=System +SmackLabelIPOut=System +ListenStream=/run/platform/apis/ws/supervisor +FileDescriptorName=supervisor +Service=afs-supervisor.service + +[Install] +WantedBy=sockets.target + |