summaryrefslogtreecommitdiffstats
path: root/units/ssh-access.target
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-03-12 18:44:33 +0100
committerLennart Poettering <lennart@poettering.net>2024-03-14 17:23:28 +0100
commit95be59f907a9853872c05f96e85aa2ce3bae8eea (patch)
tree8edae4e35db284b0a9ff32ef6aef0eb245013d42 /units/ssh-access.target
parentcore: notify supervisor over targets we reach, as we reach them (diff)
downloadsystemd-95be59f907a9853872c05f96e85aa2ce3bae8eea.tar.xz
systemd-95be59f907a9853872c05f96e85aa2ce3bae8eea.zip
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.
Diffstat (limited to 'units/ssh-access.target')
-rw-r--r--units/ssh-access.target12
1 files changed, 12 insertions, 0 deletions
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)