add s6 and runit scripts

This commit is contained in:
2020-08-06 15:45:16 -04:00
parent 40969ebc64
commit b01c88cdc5
8 changed files with 56 additions and 0 deletions

17
contrib/runit/meson.build Normal file
View File

@@ -0,0 +1,17 @@
runit = get_option('runit')
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
)
if runit
install_data(
runit_config_data_file,
install_dir: join_paths(get_option('sysconfdir'), 'runit', 'sv', 'tufmanager')
)
endif

3
contrib/runit/run.in Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
sv check dbus >/dev/null || exit 1
exec @LIBEXECDIR@/tuf-server -f