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-22 15:01:26 +01:00
committed by Luca Boccassi
parent 72775b7c89
commit 8c7dfa0ff4
+1
View File
@@ -10,3 +10,4 @@
[Unit]
Description=SSH Access Available
Documentation=man:systemd.special(7)
StopWhenUnneeded=yes