X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=conf%2Funit%2Fservice.inc;h=81554d2f6e7872fda0466ae04fc743ad1b1e4ed6;hb=4f888279f132faf35caf92d4828f134f6daeb9a1;hp=0036cae2b1349dbfc92c8785cf8dc2c64757ff41;hpb=6008a3ec4d1c0ed5df338b7c5f0775585ab51cfb;p=src%2Fapp-framework-main.git diff --git a/conf/unit/service.inc b/conf/unit/service.inc index 0036cae..81554d2 100644 --- a/conf/unit/service.inc +++ b/conf/unit/service.inc @@ -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}} @@ -146,6 +146,14 @@ include(binder.inc) ExecStart={{:#metadata.install-dir}}/{{content.src}} {{/content.type=application/x-executable}} +;------------------------------------------------------------------------------- +;---- application/vnd.agl.resource ---- +;------------------------------------------------------------------------------- +{{#content.type=application/vnd.agl.resource}} +Type=oneshot +ExecStart=/bin/true +{{/content.type=application/vnd.agl.resource}} + IF_PERM(:system:run-by-default) ;------------------------------------------------------------------------------- ; auto start @@ -161,5 +169,3 @@ ENDIF ENDIF %end systemd-unit - -