5a43ed72a7c391e437b961e63578eb9923b3a4ff
[src/app-framework-main.git] / conf / unit / generate-unit-conf / provided.inc
1 dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4:
2 ;---------------------------------------------------------------------------------
3 ;----        P R O V I D E D   A P I S                                        ----
4 ;---------------------------------------------------------------------------------
5
6 {{#provided-api}}
7 {{#value=ws|auto}}
8
9 %begin systemd-unit
10
11 # auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}}
12
13 %systemd-unit system
14 %systemd-unit socket afm-api-ws-{{name}}@
15 [Unit]
16 Description=Provides api {{name}} for user %i
17 After=user@%i.service
18 DefaultDependencies=no
19
20 [Socket]
21 SmackLabel=*
22 SmackLabelIPIn=System
23 SmackLabelIPOut=System
24 ListenStream=USER_RUN_DIR/apis/ws/{{name}}
25 FileDescriptorName={{name}}
26
27 Service=UNIT_NAME_SERVICE
28
29 %nl
30 [Install]
31 WantedBy=afm-user-session@.target
32 %systemd-unit wanted-by afm-user-session@.target
33
34 %end systemd-unit
35
36
37
38 {{/value=ws|auto}}
39 {{/provided-api}}
40
41