diff options
-rw-r--r-- | conf/afm-unit.conf.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/conf/afm-unit.conf.in b/conf/afm-unit.conf.in index 39a59d1..e5189fb 100644 --- a/conf/afm-unit.conf.in +++ b/conf/afm-unit.conf.in @@ -100,6 +100,8 @@ 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 @@ -139,6 +141,7 @@ Environment=AFM_APP_INSTALL_DIR={{:#metadata.install-dir}} %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 ---- ;--------------------------------------------------------------------------------- @@ -255,7 +258,7 @@ WantedBy=default.target [Socket] SmackLabel=* -ListenStream=%t/bindings/{{name}} +ListenStream=%t/apis/ws/{{name}} FileDescriptorName={{name}} {{#required-permission.urn:AGL:permission::public:hidden}}\ @@ -268,8 +271,8 @@ Service=afm-appli-{{idaver}}{{^#target=main}}@{{:#target}}{{/#target=main}}.serv ;--------------------------------------------------------------------------------- %nl [Install] -WantedBy=default.target -%systemd-unit wanted-by default.target +WantedBy=sockets.target +%systemd-unit wanted-by sockets.target ;--------------------------------------------------------------------------------- %end systemd-unit |