commit | d033707854b06e41fe576b62c41dda4c5633b44a | [log] [tgz] |
---|---|---|
author | Tomáš Pecka <tomas.pecka@fit.cvut.cz> | Mon Jan 25 19:57:00 2021 +0100 |
committer | Václav Kubernát <kubernat@cesnet.cz> | Tue Jan 26 13:43:39 2021 +0100 |
tree | 9f995decabb4a9d02ea2d626862d8e694952f588 | |
parent | 272abaf2f93d1bc7a897d42c45e736b4f2ea53bc [diff] |
daemons: Add daemonize option without sdbus++ Current daemons use sdbus++ library to start an event loop and keep going until SIGTERM against the process is issued. This is fine so far, however, in the next patch we introduce veliad-hardware daemon, which (so far) does not use sdbus++ and therefore it does not depend on the library. We need the veliad-hardware daemon just to keep itself running, all the Sysrepo background stuff is happening in the Sysrepo threads. This is the same use case we encountered in the lldp-systemd-networkd-sysrepo project and this patch introduces the same code that achieves that. Change-Id: I76ef6bf119361b0c6b3f763acb6bce4f8c620a2f
This software tracks health of an embedded device which runs Linux with systemd.
Velia tracks health of systemd units. In case some of them are failing, the system is considered unhealthy. You can disable monitoring of some units by using --systemd-ignore-unit
CLI flags. For example, to disable monitoring unit sshd.service
you should start velia with --systemd-ignore-unit=sshd.service
. In order to disable multiple units use the flag multiple times.
By default, the health of state is shown by flashing certain LEDs. This is however customizable by using your own callbacks.