mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ssh: Don't terminate ssh connections on systemd target changes
@ 2021-03-15 13:33 Uwe Kleine-König
  2021-03-15 17:02 ` Uwe Kleine-König
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2021-03-15 13:33 UTC (permalink / raw)
  To: ptxdist

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-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

* Re: [ptxdist] [PATCH] ssh: Don't terminate ssh connections on systemd target changes
  2021-03-15 13:33 [ptxdist] [PATCH] ssh: Don't terminate ssh connections on systemd target changes Uwe Kleine-König
@ 2021-03-15 17:02 ` Uwe Kleine-König
  0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2021-03-15 17:02 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 869 bytes --]

Hello,

On Mon, Mar 15, 2021 at 02:33:38PM +0100, Uwe Kleine-König wrote:
> 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-koenig@pengutronix.de>

I just noticed I sent the very same patch with a different commit log
already 10 days ago. I suffered some confusion about multiple git
repositories and archived mail and so resent even though I thought I
already sent this :-\ Pick whatever patch you consider the commit log
better :-)

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
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-15 17:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 13:33 [ptxdist] [PATCH] ssh: Don't terminate ssh connections on systemd target changes Uwe Kleine-König
2021-03-15 17:02 ` Uwe Kleine-König

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