add s6 and runit scripts
This commit is contained in:
parent
40969ebc64
commit
b01c88cdc5
@ -1,2 +1,4 @@
|
|||||||
subdir('openrc')
|
subdir('openrc')
|
||||||
|
subdir('runit')
|
||||||
|
subdir('s6')
|
||||||
subdir('systemd')
|
subdir('systemd')
|
||||||
|
17
contrib/runit/meson.build
Normal file
17
contrib/runit/meson.build
Normal 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
3
contrib/runit/run.in
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
sv check dbus >/dev/null || exit 1
|
||||||
|
exec @LIBEXECDIR@/tuf-server -f
|
1
contrib/s6/dependencies
Normal file
1
contrib/s6/dependencies
Normal file
@ -0,0 +1 @@
|
|||||||
|
dbus
|
17
contrib/s6/meson.build
Normal file
17
contrib/s6/meson.build
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
s6 = get_option('s6')
|
||||||
|
|
||||||
|
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
|
||||||
|
)
|
||||||
|
|
||||||
|
if s6
|
||||||
|
install_data(
|
||||||
|
[s6_config_data_file, 'type', 'dependencies'],
|
||||||
|
install_dir: join_paths(get_option('sysconfdir'), 's6', 'sv', 'tufmanager')
|
||||||
|
)
|
||||||
|
endif
|
3
contrib/s6/run.in
Normal file
3
contrib/s6/run.in
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
exec @LIBEXECDIR@/tuf-server -f
|
1
contrib/s6/type
Normal file
1
contrib/s6/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
longrun
|
@ -34,6 +34,18 @@ option(
|
|||||||
value: false,
|
value: false,
|
||||||
description: 'Install OpenRC script'
|
description: 'Install OpenRC script'
|
||||||
)
|
)
|
||||||
|
option(
|
||||||
|
'runit',
|
||||||
|
type : 'boolean',
|
||||||
|
value: false,
|
||||||
|
description: 'Install runit script'
|
||||||
|
)
|
||||||
|
option(
|
||||||
|
's6',
|
||||||
|
type : 'boolean',
|
||||||
|
value: false,
|
||||||
|
description: 'Install s6 scripts'
|
||||||
|
)
|
||||||
option(
|
option(
|
||||||
'systemd',
|
'systemd',
|
||||||
type : 'boolean',
|
type : 'boolean',
|
||||||
|
Loading…
Reference in New Issue
Block a user