]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units/ssh-access.target: enable StopWhenUnneeded=
authorMike Yuan <me@yhndnzj.com>
Sat, 19 Jul 2025 09:11:31 +0000 (11:11 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 4 Aug 2025 14:45:46 +0000 (15:45 +0100)
This combines nicely with the X_SYSTEMD_UNIT_INACTIVE= notification
we send out, to ensure when all sshd units go down the actual
status is always reflected on the target.

(cherry picked from commit 8c7dfa0ff4dc4a8c97b3b764ca642000eb63f35d)

units/ssh-access.target

index f9b6a4c1490478f31d901bbab68963f11d5310d3..31b7fbb45dd4a14403cb4201cabb94d227ffcdbd 100644 (file)
@@ -10,3 +10,4 @@
 [Unit]
 Description=SSH Access Available
 Documentation=man:systemd.special(7)
+StopWhenUnneeded=yes