Add optional systemd integration
authorKirill Isakov <bootctl@gmail.com>
Mon, 23 May 2022 13:54:41 +0000 (19:54 +0600)
committerKirill Isakov <bootctl@gmail.com>
Mon, 23 May 2022 19:41:23 +0000 (01:41 +0600)
commitd2949381713c35210a43391524494c639f6f1d48
tree8eb5fd18e2162aa8b5a9df3e94a4f071a0679823
parentc5373d9fc0c8e3dfb6529b35bf44efe58410e0c7
Add optional systemd integration

- startup & shutdown notifications
- optional watchdog with auto-restart on hang

Watchdog is enabled by using WatchdogSec in systemd unit file.
meson.build
src/event.c
src/event.h
src/linux/meson.build
src/linux/watchdog.c [new file with mode: 0644]
src/net.c
src/tincd.c
src/watchdog.h [new file with mode: 0644]
systemd/tinc@.service.in