Add optional feature to notify status to systemd

When enabled, the feature uses libsystemd to notify service manager
about the following states:
- ready
- periodic alive ping (20s)
- stopping

It allows to use Cage in a systemd unit with following options:
Type=notify
WatchdogSec=30s
This commit is contained in:
Jonathan GUILLOT 2025-09-10 22:36:28 +02:00
parent 2e593fe5a8
commit a500d11f0f
7 changed files with 86 additions and 0 deletions

View file

@ -1 +1,2 @@
option('man-pages', type: 'feature', value: 'auto', description: 'Generate and install man pages')
option('systemd', type: 'feature', value: 'disabled', description: 'Notify status to systemd')