]> 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>
Tue, 22 Jul 2025 14:01:26 +0000 (15:01 +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.

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