add pid file to systemd unit and move services to data folder
This commit is contained in:
1
data/s6/dependencies
Normal file
1
data/s6/dependencies
Normal file
@@ -0,0 +1 @@
|
||||
dbus
|
17
data/s6/meson.build
Normal file
17
data/s6/meson.build
Normal 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
3
data/s6/run.in
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/execlineb -P
|
||||
fdmove -c 2 1
|
||||
exec @LIBEXECDIR@/tuf-server -f
|
1
data/s6/type
Normal file
1
data/s6/type
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
Reference in New Issue
Block a user