When switching the systemd target (e.g. by systemctl isolate application.target) it is surprising when ssh sessions die. It's also inconvenient if the target change is done via ssh ...
So add IgnoreOnIsolate=true to sshd@.service. Signed-off-by: Uwe Kleine-König <u.kleine-koe...@pengutronix.de> --- projectroot/usr/lib/systemd/system/sshd@.service | 1 + 1 file changed, 1 insertion(+) diff --git a/projectroot/usr/lib/systemd/system/sshd@.service b/projectroot/usr/lib/systemd/system/sshd@.service index 3814e9f7b095..269127c8f3ac 100644 --- a/projectroot/usr/lib/systemd/system/sshd@.service +++ b/projectroot/usr/lib/systemd/system/sshd@.service @@ -1,6 +1,7 @@ [Unit] Description=SSH Per-Connection Server DefaultDependencies=no +IgnoreOnIsolate=true [Service] ExecStart=/usr/sbin/sshd -i -- 2.29.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-requ...@pengutronix.de