diff options
Diffstat (limited to 'conf/afm-unit.conf')
-rw-r--r-- | conf/afm-unit.conf | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/conf/afm-unit.conf b/conf/afm-unit.conf index 5fbba96..6712424 100644 --- a/conf/afm-unit.conf +++ b/conf/afm-unit.conf @@ -106,8 +106,10 @@ ConditionSecurity=smack # Automatic bound to required api {{#required-api}} -BindsTo=afm-api-{{name}} -After=afm-api-{{name}} +{{#value=auto|ws}} +BindsTo=afm-api-ws-{{name}} +After=afm-api-ws-{{name}} +{{/value=auto|ws}} {{/required-api}} %nl @@ -118,7 +120,7 @@ SuccessExitStatus=0 SIGKILL {{#required-permission}} {{#urn:AGL:permission::platform:no-oom}} OOMScoreAdjust=-500 {{/urn:AGL:permission::platform:no-oom}} {{#urn:AGL:permission::partner:real-time}} IOSchedulingClass=realtime {{/urn:AGL:permission::partner:real-time}} - {{^urn:AGL:permission::partner:real-time}} RestrictRealtime=on {{/urn:AGL:permission::partner:real-time}} +# {{^urn:AGL:permission::partner:real-time}} RestrictRealtime=on {{/urn:AGL:permission::partner:real-time}} {{#urn:AGL:permission::public:display}} SupplementaryGroups=display {{/urn:AGL:permission::public:display}} {{^urn:AGL:permission::public:syscall:clock}} SystemCallFilter=~@clock {{/urn:AGL:permission::public:syscall:clock}} {{/required-permission}} @@ -198,13 +200,13 @@ ExecStart=/usr/bin/afb-daemon \ {{/value=dbus}}\ {{/provided-api}}\ {{#content.type=text/html}}\ - --exec /usr/bin/web-runtime http://localhost:@p/{{content.src}}?token=@t \ + --exec /usr/bin/web-runtime http://localhost:@p/{{content.src}}?token=@t {{/content.type=text/html}}\ {{#content.type=application/vnd.agl.native}}\ - --exec {{:#metadata.install-dir}}/{{content.src}} @p @t \ + --exec {{:#metadata.install-dir}}/{{content.src}} @p @t {{/content.type=application/vnd.agl.native}}\ {{#content.type=application/vnd.agl.service}}\ - --no-httpd \ + --no-httpd {{/content.type=application/vnd.agl.service}} {{/content.type=text/html|application/vnd.agl.native|application/vnd.agl.service}} @@ -248,7 +250,7 @@ WantedBy=default.target # auto generated by wgtpkg-unit for {{id}} version {{version}} target {{:#target}} of {{idaver}} # %systemd-unit user -%systemd-unit socket afm-socket-{{name}} +%systemd-unit socket afm-api-ws-{{name}} [Socket] SmackLabel=* |