scx/services/systemd/meson.build
Vladislav Nepogodin 9b5e8da8e3
scx_loader: Add systemd service and on-DBUS launch
- add ability to start loader at system start as a service

- add ability to automatically launch on DBUS call whenever third-party
calls the interface

ref: "Example 7. DBus services" https://www.freedesktop.org/software/systemd/man/256/systemd.service.html
2024-09-27 23:51:28 +04:00

15 lines
703 B
Meson

# Get the directory for systemd system unit files
systemd_system_unit_dir = systemd.get_variable(pkgconfig : 'systemdsystemunitdir')
# Install the 'scx.service' file to the systemd system unit directory
install_data('scx.service', install_dir: systemd_system_unit_dir)
# Install the 'scx_loader.service' file to the systemd system unit directory
install_data('scx_loader.service', install_dir: systemd_system_unit_dir)
# Install the 'org.scx.Loader.service' file to the dbus system services directory
install_data('org.scx.Loader.service', install_dir: '/usr/share/dbus-1/system-services')
# Install the 'scx' file to the '/etc/default' directory
install_data('../scx', install_dir: '/etc/default')