Skip to content
Snippets Groups Projects
Commit bebcb500 authored by Frederic Danis's avatar Frederic Danis
Browse files

Add systemd service file

parent 439f5ef0
No related branches found
No related tags found
1 merge request!1Initial support for Apertis hawkBit agent
[Unit]
Description=Apertis hawkBit agent
[Service]
ExecStart=@libexecdir@/apertis-hawkbit-agent
NotifyAccess=main
Restart=on-failure
[Install]
WantedBy=multi-user.target
......@@ -38,5 +38,19 @@ executable('apertis-hawkbit-agent',
install_dir: get_option('libexecdir'),
dependencies: [ glib, gobject, gio, soup, jsonglib ])
conf = configuration_data()
conf.set('libexecdir',
join_paths(get_option('prefix'), get_option('libexecdir')))
conf.set('bindir',
join_paths(get_option('prefix'), get_option('bindir')))
service_aha = configure_file(input: 'data/apertis-hawkbit-agent.service.in',
output: 'apertis-hawkbit-agent.service',
configuration: conf)
install_data(service_aha,
install_dir: systemunitdir)
install_data (['data/apertis-hawkbit-agent.ini' ],
install_dir: '/etc')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment