Introduce dbus config of services
[src/app-framework-main.git] / conf / unit / provided-api-user.inc
1 dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4:
2 ;-------------------------------------------------------------------------------
3 ;----        T H E   S E R V I C E   O F   T H E   A P I                    ----
4 ;-------------------------------------------------------------------------------
5 %begin systemd-unit
6
7 # auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}}
8
9 %systemd-unit system
10 %systemd-unit service UNIT_NAME_API_BASE({{name}})@
11
12 [Unit]
13 Description=Provides api {{name}} for user %i
14 X-AFM-API-TYPE={{value}}
15
16 Requires=afm-user-setup@%i.service
17 After=afm-user-setup@%i.service
18
19 Requires=UNIT_NAME_API_BASE({{name}})@%i.socket
20 After=UNIT_NAME_API_BASE({{name}})@%i.socket
21
22 [Service]
23 Type=oneshot
24 RemainAfterExit=yes
25 ExecStart=/bin/true
26
27 %end systemd-unit
28
29 ;-------------------------------------------------------------------------------
30 ;----        T H E   S O C K E T   O F   T H E   A P I                      ----
31 ;-------------------------------------------------------------------------------
32
33 %begin systemd-unit
34
35 # auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}}
36
37 %systemd-unit system
38 %systemd-unit socket UNIT_NAME_API_BASE({{name}})@
39 [Unit]
40 Description=Provides websocket api {{name}} for user %i
41 Requires=afm-user-setup@%i.service
42 After=afm-user-setup@%i.service
43 DefaultDependencies=no
44
45 [Socket]
46 SmackLabel=*
47 SmackLabelIPIn=System
48 SmackLabelIPOut=System
49 ListenStream=USER_API_PATH_WS/{{name}}
50 FileDescriptorName={{name}}
51 Service=UNIT_NAME_BASE@%i.service
52
53 %end systemd-unit