afm-unit.conf: Enforce starting after network 47/17347/1
authorJose Bollo <jose.bollo@iot.bzh>
Thu, 27 Sep 2018 10:42:51 +0000 (12:42 +0200)
committerJose Bollo <jose.bollo@iot.bzh>
Fri, 19 Oct 2018 12:13:02 +0000 (14:13 +0200)
This solves issues encountered when starting
remote services. It delays all services until
completion of network initialisation. Delaying
every services is not selective. Further
optimisation may improve that issue.

Bug-AGL: SPEC-1650

Change-Id: I5742a4cd514c86c724a8e7a86c7e0a5dde6a8c67
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
conf/unit/afm-unit-debug.conf.in
conf/unit/afm-unit.conf.in
conf/unit/generate-unit-conf/service.inc

index c812368..7ffeb2f 100644 (file)
@@ -107,6 +107,7 @@ X-AFM--workdir=/home/%i/app-data/{{:id}}
 %nl
 Requires=afm-user-session@%i.target
 After=user@%i.service
+After=Network.target
 # Adds check to smack
 ConditionSecurity=smack
 %nl
index f5e25ea..3569790 100644 (file)
@@ -107,6 +107,7 @@ X-AFM--workdir=/home/%i/app-data/{{:id}}
 %nl
 Requires=afm-user-session@%i.target
 After=user@%i.service
+After=Network.target
 # Adds check to smack
 ConditionSecurity=smack
 %nl
index 1df4210..5b146ee 100644 (file)
@@ -34,6 +34,7 @@ X-AFM--workdir=APP_DATA_DIR/{{:id}}
 
 Requires=afm-user-session@%i.target
 After=user@%i.service
+After=Network.target
 
 # Adds check to smack
 ConditionSecurity=smack