add systemd

This commit is contained in:
2020-08-05 23:18:39 -04:00
parent 28480a6de2
commit d19f8bcffa
7 changed files with 33 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
systemd = get_option('systemd')
systemd_config_data = configuration_data()
systemd_config_data.set('LIBEXECDIR', join_paths(get_option('prefix'), get_option('libexecdir'), meson.project_name()))
systemd_config_data_file = configure_file(
input: 'tufmanager.service.in',
output: 'tufmanager.service',
configuration: systemd_config_data
)
if systemd
install_data(
systemd_config_data_file,
install_dir: join_paths(get_option('prefix'), 'lib', 'systemd', 'system')
)
endif

View File

@@ -0,0 +1,6 @@
[Unit]
Description=TUF Manager Server
[Service]
Type=forking
ExecStart=@LIBEXECDIR@/tuf-server