;
; gives the name and type of the unit
;
+; - %systemd-unit wanted-by NAME
+;
+; tells to install a link to unit in the wants of NAME
+;
;---------------------------------------------------------------------------------
{{#targets}}
%begin systemd-unit
{{#content.type=application/vnd.agl.service}}
%systemd-unit user
-%systemd-unit service afm-api-{{:#target}}
+%systemd-unit service afm-service-{{:#target}}
ExecStart=/usr/bin/afb-daemon \
--rootdir={{:#metadata.install-dir}} \
# auto generated by wgtpkg-unit for {{id}} version {{version}} target {{:#target}}
#
%systemd-unit user
-%systemd-unit socket afm-api-{{:#target}}
-
+%systemd-unit socket afm-service-{{:#target}}
[socket]
SmackLabel=*
{{#required-permission.urn:AGL:permission::system:run-by-default}}
[install]
WantedBy=default.target
+%systemd-unit wanted-by default.target
{{/required-permission.urn:AGL:permission::system:run-by-default}}
;---------------------------------------------------------------------------------
%end systemd-unit