afm-unit: Export new variables
[src/app-framework-main.git] / conf / unit / generate-unit-conf / provided-binding.inc
1 dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4:
2 ;-------------------------------------------------------------------------------
3 ;----        P R O V I D E D   B I N D I N G                                ----
4 ;-------------------------------------------------------------------------------
5
6 {{#provided-binding}}
7
8 ;-------------------------------------------------------------------------------
9 ;----        T H E   S E R V I C E   O F   T H E   B I N D I N G            ----
10 ;-------------------------------------------------------------------------------
11 %begin systemd-unit
12
13 # auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}}
14
15 %systemd-unit system
16 %systemd-unit service UNIT_NAME_BINDING_BASE({{name}})@
17
18 [Unit]
19 Description=Provides binding {{name}} for user %i
20
21 Requires=afm-user-setup@%i.service
22 After=afm-user-setup@%i.service
23
24 [Service]
25 Type=oneshot
26 RemainAfterExit=yes
27 ExecStart=/bin/ln -sf {{:#metadata.install-dir}}/{{value}} API_PATH_LINK/{{name}}
28
29 %end systemd-unit
30
31 {{/provided-binding}}
32
33