]> git.proxmox.com Git - mirror_lxcfs.git/blob - config/init/meson.build
Query systemd system unit dir.
[mirror_lxcfs.git] / config / init / meson.build
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 if init_script == 'systemd'
4 systemd = dependency('systemd')
5 systemd_system_unit_dir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
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,
17 install_dir: systemd_system_unit_dir)
18
19 elif init_script == 'upstart'
20 install_data('upstart/lxcfs.conf', install_dir: join_paths(sysconfdir, 'init'))
21 elif init_script == 'openrc'
22 install_data('sysvinit/lxcfs', install_dir: join_paths(sysconfdir, 'rc.d/init.d/lxcfs'))
23 elif init_script == 'sysvinit'
24 install_data('sysvinit/lxcfs', install_dir: join_paths(sysconfdir, 'rc.d/init.d/lxcfs'))
25 endif