]> git.ipfire.org Git - thirdparty/systemd.git/commit
ssh-generator: introduce ssh-access.target
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Mar 2024 17:44:33 +0000 (18:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Mar 2024 16:23:28 +0000 (17:23 +0100)
commit95be59f907a9853872c05f96e85aa2ce3bae8eea
tree8edae4e35db284b0a9ff32ef6aef0eb245013d42
parentb2d6bb5b34c89f6db65273bd42ec54c97efa33d8
ssh-generator: introduce ssh-access.target

This new passive target is supposed to be pulled in by SSH
implementations and should be reached when remote SSH access is
possible. The idea is that this target can be used as indicator for
other components to determine if and when SSH access is possible.

One specific usecase for this is the new sd_notify() logic in PID 1 that
sends its own supervisor notifications whenever target units are
reached. This can be used to precisely schedule SSH connections from
host to VM/container, or just to identify systems where SSH is even
available.
man/systemd.special.xml
src/ssh-generator/ssh-generator.c
units/meson.build
units/ssh-access.target [new file with mode: 0644]