]>
Commit | Line | Data |
---|---|---|
e5af758b CB |
1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
2 | ||
40e23aff | 3 | if 'systemd' in init_script |
6301082a | 4 | systemd = dependency('systemd') |
9bfc897a | 5 | systemd_system_unit_dir = get_option('prefix') + systemd.get_pkgconfig_variable('systemdsystemunitdir') |
3c34a198 SG |
6 | systemd_service = custom_target( |
7 | 'lxcfs.service', | |
8 | input: 'systemd/lxcfs.service.in', | |
9 | output: 'lxcfs.service', | |
10 | command: [ | |
11 | meson_render_jinja2, | |
12 | config_h, | |
13 | '@INPUT@', | |
14 | '@OUTPUT@', | |
15 | ], | |
16 | install: true, | |
6301082a | 17 | install_dir: systemd_system_unit_dir) |
40e23aff | 18 | endif |
3c34a198 | 19 | |
40e23aff | 20 | if 'upstart' in init_script |
3c34a198 | 21 | install_data('upstart/lxcfs.conf', install_dir: join_paths(sysconfdir, 'init')) |
40e23aff SG |
22 | endif |
23 | ||
24 | if 'openrc' in init_script | |
72ca394f | 25 | install_data('sysvinit/lxcfs', install_dir: join_paths(sysconfdir, 'rc.d/init.d')) |
40e23aff SG |
26 | endif |
27 | ||
28 | if 'sysvinit' in init_script | |
72ca394f | 29 | install_data('sysvinit/lxcfs', install_dir: join_paths(sysconfdir, 'init.d')) |
e5af758b | 30 | endif |