From 95be59f907a9853872c05f96e85aa2ce3bae8eea Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 12 Mar 2024 18:44:33 +0100 Subject: 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. --- units/ssh-access.target | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 units/ssh-access.target (limited to 'units/ssh-access.target') diff --git a/units/ssh-access.target b/units/ssh-access.target new file mode 100644 index 0000000000..f9b6a4c149 --- /dev/null +++ b/units/ssh-access.target @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=SSH Access Available +Documentation=man:systemd.special(7) -- cgit v1.2.3