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.
This commit is contained in:
Mike Yuan
2025-07-19 11:11:31 +02:00
committed by Luca Boccassi
parent 72775b7c89
commit 8c7dfa0ff4

View File

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