summaryrefslogtreecommitdiffstats
path: root/afm-api-supervisor.socket
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-07-09 17:56:55 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2019-07-23 14:24:01 +0200
commitdaecef104cd2a6ac3e4436306e96ed48aea8271d (patch)
tree0115d25bc9476ba044b011802af9c3898e55bde2 /afm-api-supervisor.socket
parent056c53da68eaa007a7bcabf77ef3205b6ff04ca1 (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.socket21
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
+