From: Mike Yuan Date: Sat, 19 Jul 2025 09:11:31 +0000 (+0200) Subject: units/ssh-access.target: enable StopWhenUnneeded= X-Git-Tag: v258-rc1~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c7dfa0ff4dc4a8c97b3b764ca642000eb63f35d;p=thirdparty%2Fsystemd.git units/ssh-access.target: enable StopWhenUnneeded= 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. --- diff --git a/units/ssh-access.target b/units/ssh-access.target index f9b6a4c1490..31b7fbb45dd 100644 --- a/units/ssh-access.target +++ b/units/ssh-access.target @@ -10,3 +10,4 @@ [Unit] Description=SSH Access Available Documentation=man:systemd.special(7) +StopWhenUnneeded=yes