After=Network.target
+IF_PERM(:public:display)
+BindsTo=weston@display.service
+After=weston@display.service
+ENDIF
+
# Adds check to smack
ConditionSecurity=smack
%nl
# 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}}
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
ENDIF
%end systemd-unit
-
-