add pid file to systemd unit and move services to data folder
This commit is contained in:
17
data/runit/meson.build
Normal file
17
data/runit/meson.build
Normal file
@@ -0,0 +1,17 @@
|
||||
runit_config_data = configuration_data()
|
||||
runit_config_data.set('LIBEXECDIR', join_paths(get_option('prefix'), get_option('libexecdir'), meson.project_name()))
|
||||
|
||||
runit_config_data_file = configure_file(
|
||||
input: 'run.in',
|
||||
output: 'run',
|
||||
configuration: runit_config_data
|
||||
)
|
||||
|
||||
runit = find_program ('runit', required: false)
|
||||
|
||||
if runit.found()
|
||||
install_data(
|
||||
runit_config_data_file,
|
||||
install_dir: join_paths(get_option('sysconfdir'), 'runit', 'sv', 'tufmanager')
|
||||
)
|
||||
endif
|
3
data/runit/run.in
Executable file
3
data/runit/run.in
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
sv check dbus >/dev/null || exit 1
|
||||
exec @LIBEXECDIR@/tuf-server -f
|
Reference in New Issue
Block a user