X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=conf%2Funit%2Fgenerate-unit-conf%2Fservice.inc;h=88c14545215921cd77a57a8747355e5240f13926;hb=05c3b4ed84d7dbc380258ded7d09666ad048c22c;hp=66202434238c05463b8f4d76a93cec37fd1642e8;hpb=3476b426fb3443ff909f8d607934e59601c7d508;p=src%2Fapp-framework-main.git diff --git a/conf/unit/generate-unit-conf/service.inc b/conf/unit/generate-unit-conf/service.inc index 6620243..88c1454 100644 --- a/conf/unit/generate-unit-conf/service.inc +++ b/conf/unit/generate-unit-conf/service.inc @@ -1,14 +1,14 @@ dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4: -;--------------------------------------------------------------------------------- -;---- M A I N P A R T O F T H E S E R V I C E ---- -;--------------------------------------------------------------------------------- +;------------------------------------------------------------------------------- +;---- M A I N P A R T O F T H E S E R V I C E ---- +;------------------------------------------------------------------------------- %begin systemd-unit # auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}} %nl %systemd-unit system -%systemd-unit service UNIT_NAME_BASE +%systemd-unit service UNIT_NAME_BASE@ [Unit] Description={{description}} @@ -64,14 +64,15 @@ After=UNIT_NAME_API_SOCKET({{name}},%i) %nl [Service] -EnvironmentFile=-AFM_CONFIG_DIR/unit.env.d/* +EnvironmentFile=-@afm_confdir@/unit.env.d/* +EnvironmentFile=-@afm_confdir@/widget.env.d/{{:id}}/* SmackProcessLabel=User::App::{{:id}} SuccessExitStatus=0 SIGKILL User=%i Slice=user-%i.slice -#CapabilityBoundingSet= +CapabilityBoundingSet= #AmbientCapabilities= ON_PERM(:platform:no-oom, OOMScoreAdjust=-500) @@ -104,24 +105,24 @@ StandardInput=null StandardOutput=journal StandardError=journal -;--------------------------------------------------------------------------------- -;---- text/html application/vnd.agl.native application/vnd.agl.service ---- -;--------------------------------------------------------------------------------- +;------------------------------------------------------------------------------- +;---- text/html application/vnd.agl.native application/vnd.agl.service ---- +;------------------------------------------------------------------------------- {{#content.type=text/html|application/vnd.agl.native|application/vnd.agl.service}} include(binder.inc) {{/content.type=text/html|application/vnd.agl.native|application/vnd.agl.service}} -;--------------------------------------------------------------------------------- -;---- application/x-executable ---- -;--------------------------------------------------------------------------------- +;------------------------------------------------------------------------------- +;---- application/x-executable ---- +;------------------------------------------------------------------------------- {{#content.type=application/x-executable}} ExecStart={{:#metadata.install-dir}}/{{content.src}} {{/content.type=application/x-executable}} IF_PERM(:system:run-by-default) -;--------------------------------------------------------------------------------- +;------------------------------------------------------------------------------- ; auto start -;--------------------------------------------------------------------------------- +;------------------------------------------------------------------------------- [Install] WantedBy=afm-user-session@.target %systemd-unit wanted-by afm-user-session@.target