unit.conf: Explicit dependency to user-config.service 57/13057/1 5.0.0 5.0.1 5.0.2 5.0.3 5.1.0 eel/5.0.0 eel/5.0.1 eel/5.0.2 eel/5.0.3 eel/5.1.0 eel_5.0.0 eel_5.0.1 eel_5.0.2 eel_5.0.3 eel_5.1.0
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 28 Dec 2017 12:40:05 +0000 (13:40 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 28 Dec 2017 12:47:41 +0000 (13:47 +0100)
Some times, some services (like weston) are starting too much slowly,
implying errors on applications that need it (like homescreen).

To avoid the issue, an explicit dependency to user-config.service
is added. That service, user-config.service, has an implicit
dependency to user-config.path that waits weston to be started.

Bug-AGL: SPEC-1199

Change-Id: I7a5b9fd2d5fbd0d6ca778d78db5147a849ddcd6e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
conf/afm-unit-debug.conf.in
conf/afm-unit.conf.in

index 04639a3..70cdc47 100644 (file)
@@ -113,6 +113,8 @@ BindsTo=afm-api-ws-{{name}}.socket
 After=afm-api-ws-{{name}}.socket
 {{/value=auto|ws}}
 {{/required-api}}
+Requires=user-config.service
+After=user-config.service
 %nl
 
 [Service]
index 237f8ce..3190b0e 100644 (file)
@@ -113,6 +113,8 @@ BindsTo=afm-api-ws-{{name}}.socket
 After=afm-api-ws-{{name}}.socket
 {{/value=auto|ws}}
 {{/required-api}}
+Requires=user-config.service
+After=user-config.service
 %nl
 
 [Service]