Fix homescreen start on yocto/Zeus 52/24052/1
authorJosé Bollo <jose.bollo@iot.bzh>
Fri, 14 Feb 2020 09:37:56 +0000 (10:37 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Thu, 20 Feb 2020 12:25:45 +0000 (13:25 +0100)
Replacing BindsTo by Requires fix the start issue
of the homescreen that complained with the message

   systemd[1]: afm-appli-homescreen--0.1--main@1001.service: ...
    ... Bound to unit afm-api-vshl-core@1001.service, but unit isn't active.

Bug-AGL: SPEC-3178

Change-Id: I8df50354128d319f3dfc93b4d10848ecafdb6773
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
conf/unit/service.inc

index a520e3b..81554d2 100644 (file)
@@ -55,14 +55,14 @@ ConditionSecurity=smack
 # Automatic bound to required api
 {{#required-binding}}
 {{#value=extern}}
-BindsTo=UNIT_NAME_BINDING_SERVICE({{name}})
+Requires=UNIT_NAME_BINDING_SERVICE({{name}})
 After=UNIT_NAME_BINDING_SERVICE({{name}})
 {{/value=extern}}
 {{/required-binding}}
 
 {{#required-api}}
 {{#value=auto|ws}}
-BindsTo=UNIT_NAME_API_SERVICE({{name}})
+Requires=UNIT_NAME_API_SERVICE({{name}})
 After=UNIT_NAME_API_SERVICE({{name}})
 {{/value=auto|ws}}
 {{/required-api}}