mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] openssh: Don't kill ssh sessions when isolating a unit
@ 2021-03-05 17:04 Uwe Kleine-König
  2021-03-14 13:35 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2021-03-05 17:04 UTC (permalink / raw)
  To: ptxdist

When system state is switched using systemctl isolate ssh sessions
usually shouldn't be killed. Make this the default.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@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-request@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-14 13:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 17:04 [ptxdist] [PATCH] openssh: Don't kill ssh sessions when isolating a unit Uwe Kleine-König
2021-03-14 13:35 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox