1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 if init_script == 'systemd'
4 systemd = dependency('systemd')
5 systemd_system_unit_dir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
6 systemd_service = custom_target(
8 input: 'systemd/lxcfs.service.in',
9 output: 'lxcfs.service',
17 install_dir: systemd_system_unit_dir)
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'))