data: Add systemd unit to start alert slider service
This commit is contained in:
committed by
Guido Günther
parent
0a2392db3f
commit
7ea55aeaf5
@@ -72,4 +72,24 @@ if get_option('udev')
|
||||
install_data('90-feedbackd.rules', install_dir: udevdir)
|
||||
endif
|
||||
|
||||
systemd_user_unit_dir = get_option('systemd_user_unit_dir')
|
||||
systemd_dep = dependency('systemd', required: false)
|
||||
if systemd_user_unit_dir == ''
|
||||
if systemd_dep.found()
|
||||
systemd_user_unit_dir = systemd_dep.get_variable('systemd_user_unit_dir')
|
||||
else
|
||||
systemd_user_unit_dir = prefix / libdir / 'systemd' / 'user'
|
||||
endif
|
||||
endif
|
||||
|
||||
# Alert slider Systemd user service
|
||||
alert_slider_unit = 'fbd-alert-slider.service'
|
||||
configure_file(
|
||||
input : alert_slider_unit + '.in',
|
||||
output : alert_slider_unit,
|
||||
configuration : service_data,
|
||||
install : true,
|
||||
install_dir : systemd_user_unit_dir,
|
||||
)
|
||||
|
||||
endif # daemon
|
||||
|
||||
Reference in New Issue
Block a user