summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-06-23 14:05:16 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-06-23 14:05:16 +0200
commit9fa72fb3042cf63055768564023eb94c39d6c75c (patch)
tree4ddf58595eee9cfac89d6ae6ea75aae2f0023fc4
parent4e31411783b27692434a7759267156a5a0aabdd0 (diff)
Fix socket activation
Change-Id: Ic511bf717c61105003d750235229bfc50ee7fccd Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--conf/afm-unit.conf.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/conf/afm-unit.conf.in b/conf/afm-unit.conf.in
index 39a59d1..e5189fb 100644
--- a/conf/afm-unit.conf.in
+++ b/conf/afm-unit.conf.in
@@ -100,6 +100,8 @@ X-AFM--wgtdir={{:#metadata.install-dir}}
X-AFM--workdir={{&#metadata.app-data-dir}}/{{id}}
%nl
+Wants=sockets.target
+
# Adds check to smack
ConditionSecurity=smack
%nl
@@ -139,6 +141,7 @@ Environment=AFM_APP_INSTALL_DIR={{:#metadata.install-dir}}
%systemd-unit service afm-appli-{{idaver}}{{^#target=main}}@{{:#target}}{{/#target=main}}
{{/required-permission.urn:AGL:permission::public:hidden}}\
+
;---------------------------------------------------------------------------------
;---- text/html application/vnd.agl.native application/vnd.agl.service ----
;---------------------------------------------------------------------------------
@@ -255,7 +258,7 @@ WantedBy=default.target
[Socket]
SmackLabel=*
-ListenStream=%t/bindings/{{name}}
+ListenStream=%t/apis/ws/{{name}}
FileDescriptorName={{name}}
{{#required-permission.urn:AGL:permission::public:hidden}}\
@@ -268,8 +271,8 @@ Service=afm-appli-{{idaver}}{{^#target=main}}@{{:#target}}{{/#target=main}}.serv
;---------------------------------------------------------------------------------
%nl
[Install]
-WantedBy=default.target
-%systemd-unit wanted-by default.target
+WantedBy=sockets.target
+%systemd-unit wanted-by sockets.target
;---------------------------------------------------------------------------------
%end systemd-unit