Introduce platform services
[src/app-framework-main.git] / conf / unit / provided-binding-platform.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   B I N D I N G       (USER)   ----
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_BINDING_BASE({{name}})@
11
12 [Unit]
13 Description=Provides binding {{name}} for user %i
14
15 Requires=afm-user-setup@%i.service
16 After=afm-user-setup@%i.service
17 Requires=UNIT_NAME_BINDING_BASE({{name}}).service
18 After=UNIT_NAME_BINDING_BASE({{name}}).service
19
20 [Service]
21 Type=oneshot
22 RemainAfterExit=yes
23 ExecStart=/bin/ln -sf PLATFORM_API_PATH_LINK/{{name}} USER_API_PATH_LINK/{{name}}
24
25 %end systemd-unit
26
27 ;-------------------------------------------------------------------------------
28 ;----    T H E   S E R V I C E   O F   T H E   B I N D I N G   (PLATFORM)   ----
29 ;-------------------------------------------------------------------------------
30 %begin systemd-unit
31
32 # auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}}
33
34 %systemd-unit system
35 %systemd-unit service UNIT_NAME_BINDING_BASE({{name}})
36
37 [Unit]
38 Description=Provides binding {{name}} for platform
39
40 Requires=afm-system-setup.service
41 After=afm-system-setup.service
42
43 [Service]
44 Type=oneshot
45 RemainAfterExit=yes
46 ExecStart=/bin/ln -sf {{:#metadata.install-dir}}/{{value}} PLATFORM_API_PATH_LINK/{{name}}
47
48 %end systemd-unit