;
; Lines beginning with ; are firstly removed
;
-; 2. File instanciation
+; 2. File instantiation
;
; Mustache (extended) substitutions are applied using JSON
; data deduced from config.xml file of the widget.
;
; X-AFM-description={{description}}
;
-; Records the descritpion of the unit in the field "description"
+; Records the description of the unit in the field "description"
; of both the public and private object describing the unit.
;
; X-AFM--wgtdir={{:#metadata.install-dir}}
X-AFM--workdir={{&#metadata.app-data-dir}}/{{id}}
%nl
+Wants=sockets.target
+
# Adds check to smack
ConditionSecurity=smack
%nl
%systemd-unit service afm-appli-{{idaver}}{{^#target=main}}@{{:#target}}{{/#target=main}}
{{/required-permission.urn:AGL:permission::public:hidden}}\
+
;---------------------------------------------------------------------------------
;---- text/html application/vnd.agl.native application/vnd.agl.service ----
;---------------------------------------------------------------------------------
; auto start
;---------------------------------------------------------------------------------
{{#required-permission.urn:AGL:permission::system:run-by-default}}
-{{^provided-api}}
%nl
[Install]
WantedBy=default.target
%systemd-unit wanted-by default.target
-{{/provided-api}}
{{/required-permission.urn:AGL:permission::system:run-by-default}}
%end systemd-unit
[Socket]
SmackLabel=*
-ListenStream=%t/bindings/{{name}}
+ListenStream=%t/apis/ws/{{name}}
FileDescriptorName={{name}}
{{#required-permission.urn:AGL:permission::public:hidden}}\
;---------------------------------------------------------------------------------
%nl
[Install]
-WantedBy=default.target
-%systemd-unit wanted-by default.target
+WantedBy=sockets.target
+%systemd-unit wanted-by sockets.target
;---------------------------------------------------------------------------------
%end systemd-unit