add pid file to systemd unit and move services to data folder

This commit is contained in:
2020-08-29 11:03:49 -04:00
parent e8d0a906a5
commit 69bd767cd6
13 changed files with 6 additions and 6 deletions

1
data/s6/dependencies Normal file
View File

@@ -0,0 +1 @@
dbus

17
data/s6/meson.build Normal file
View File

@@ -0,0 +1,17 @@
s6_config_data = configuration_data()
s6_config_data.set('LIBEXECDIR', join_paths(get_option('prefix'), get_option('libexecdir'), meson.project_name()))
s6_config_data_file = configure_file(
input: 'run.in',
output: 'run',
configuration: s6_config_data
)
s6 = find_program ('s6-init', required: false)
if s6.found()
install_data(
[s6_config_data_file, 'type', 'dependencies'],
install_dir: join_paths(get_option('sysconfdir'), 's6', 'sv', 'tufmanager')
)
endif

3
data/s6/run.in Normal file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/execlineb -P
fdmove -c 2 1
exec @LIBEXECDIR@/tuf-server -f

1
data/s6/type Normal file
View File

@@ -0,0 +1 @@
longrun