X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=conf%2Funit%2Fafm-unit.conf.in;h=e9585f0bf42f4e01ee86f2607f9ee9f2902b9cdb;hb=a5cf62686366f4a69becf62aa4d953e034c9bee4;hp=f8e44097a0aa13ff70190e7453468405ee3b741a;hpb=b8f6bf4ac1ff2a99121a141e48426a472f18a600;p=src%2Fapp-framework-main.git diff --git a/conf/unit/afm-unit.conf.in b/conf/unit/afm-unit.conf.in index f8e4409..e9585f0 100644 --- a/conf/unit/afm-unit.conf.in +++ b/conf/unit/afm-unit.conf.in @@ -1,4 +1,4 @@ -;--------------------------------------------------------------------------------- +;------------------------------------------------------------------------------- ; File: ; ; afm-unit.conf @@ -74,11 +74,14 @@ ; Records the installation directory path in the field "wgtdir" ; of the private object only. ; -;--------------------------------------------------------------------------------- +;------------------------------------------------------------------------------- +;---- F O R E A C H T A R G E T ---- +;------------------------------------------------------------------------------- {{#targets}} -;--------------------------------------------------------------------------------- -;---- 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 @@ -163,9 +166,9 @@ SyslogIdentifier=afbd-{{idaver}}{{^#target=main}}@{{:#target}}{{/#target=main}} 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}} {{^content.type=application/vnd.agl.service}} X-AFM--http-port={{:#metatarget.http-port}} @@ -202,23 +205,23 @@ ExecStart=/usr/bin/afb-daemon \ {{#content.type=text/html}}--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{{/content.type=application/vnd.agl.native}} {{/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}} {{#required-permission.@afm_prefix@permission::system:run-by-default}} -;--------------------------------------------------------------------------------- +;------------------------------------------------------------------------------- ; auto start -;--------------------------------------------------------------------------------- +;------------------------------------------------------------------------------- [Install] WantedBy=afm-user-session@.target %systemd-unit wanted-by afm-user-session@.target {{/required-permission.@afm_prefix@permission::system:run-by-default}} %end systemd-unit ;------------------------------------------------------------------------------- -;---- P R O V I D E D A P I S ---- +;---- F O R E A C H P R O V I D E D A P I S ---- ;------------------------------------------------------------------------------- {{#provided-api}} {{#value=ws|auto}} @@ -234,16 +237,12 @@ Description=Provides api {{name}} for user %i X-AFM-API-TYPE={{value}} Requires=afm-user-setup@%i.service After=afm-user-setup@%i.service -{{#value=ws|auto}} Requires=afm-api-{{name}}@%i.socket After=afm-api-{{name}}@%i.socket -{{/value=ws|auto}} [Service] Type=oneshot RemainAfterExit=yes -{{#value=ws|auto}} ExecStart=/bin/true -{{/value=ws|auto}} %end systemd-unit ;------------------------------------------------------------------------------- ;---- T H E S O C K E T O F T H E A P I ---- @@ -268,7 +267,7 @@ Service=afm-{{#required-permission.@afm_prefix@permission::public:hidden}}servic {{/value=ws|auto}} {{/provided-api}} ;------------------------------------------------------------------------------- -;---- P R O V I D E D B I N D I N G ---- +;---- F O R E A C H P R O V I D E D B I N D I N G ---- ;------------------------------------------------------------------------------- {{#provided-binding}} ;------------------------------------------------------------------------------- @@ -288,7 +287,8 @@ RemainAfterExit=yes ExecStart=/bin/ln -sf {{:#metadata.install-dir}}/{{value}} @afm_users_rundir@/%i/apis/link/{{name}} %end systemd-unit {{/provided-binding}} +;------------------------------------------------------------------------------- {{/targets}} -;--------------------------------------------------------------------------------- +;------------------------------------------------------------------------------- ; End of file afm-unit.conf mode RELEASE -;--------------------------------------------------------------------------------- +;-------------------------------------------------------------------------------