aboutsummaryrefslogtreecommitdiffstats
path: root/conf/unit/generate-unit-conf/provided.inc
blob: ead1983934a803ff2f08ca21e8f85e5c1136fcaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4:
;---------------------------------------------------------------------------------
;----        P R O V I D E D   A P I S                                        ----
;---------------------------------------------------------------------------------

{{#provided-api}}
{{#value=ws|auto}}

%begin systemd-unit

# auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}}

%systemd-unit system
%systemd-unit socket afm-api-ws-{{name}}@
[Unit]
Description=Provides api {{name}} for user %i
Requires=afm-user-setup@%i.service
After=afm-user-setup@%i.service
DefaultDependencies=no

[Socket]
SmackLabel=*
SmackLabelIPIn=System
SmackLabelIPOut=System
ListenStream=USER_RUN_DIR/apis/ws/{{name}}
FileDescriptorName={{name}}

Service=UNIT_NAME_SERVICE

%nl
[Install]
WantedBy=afm-user-session@.target
%systemd-unit wanted-by afm-user-session@.target

%end systemd-unit



{{/value=ws|auto}}
{{/provided-api}}