aboutsummaryrefslogtreecommitdiffstats
path: root/conf/unit/afm-unit.conf.in
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-11-23 22:52:46 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2017-11-24 17:44:58 +0100
commit37888ab2c20b493a2c4b5d21c498509cfdf7ac7b (patch)
tree0856bda9d765d4130d9b4cd21caa5387d93bac33 /conf/unit/afm-unit.conf.in
parent5d36137251cb9325050ba56023ecd70743e132fd (diff)
Avoid implicit Before socket.target
Change-Id: I493c49a80ebb1fa85f586d0b0704b5682f0c3613 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'conf/unit/afm-unit.conf.in')
-rw-r--r--conf/unit/afm-unit.conf.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/conf/unit/afm-unit.conf.in b/conf/unit/afm-unit.conf.in
index 56a9075..bf9b32a 100644
--- a/conf/unit/afm-unit.conf.in
+++ b/conf/unit/afm-unit.conf.in
@@ -118,6 +118,12 @@ BindsTo=afm-api-ws-{{name}}@%i.socket
After=afm-api-ws-{{name}}@%i.socket
{{/value=auto|ws}}
{{/required-api}}
+{{#provided-api}}
+{{#value=ws|auto}}
+Requires=afm-api-ws-{{name}}@%i.socket
+After=afm-api-ws-{{name}}@%i.socket
+{{/value=ws|auto}}
+{{/provided-api}}
%nl
[Service]
EnvironmentFile=-@afm_confdir@/unit.env.d/*
@@ -208,6 +214,7 @@ WantedBy=afm-user-session@.target
Description=Provides api {{name}} for user %i
Requires=afm-user-setup@%i.service
After=afm-user-setup@%i.service
+DefaultDependencies=no
[Socket]
SmackLabel=*
ListenStream=/run/user/%i/apis/ws/{{name}}