From a8f6f7aa43ea747d45a7086b713e55144ff6f3cb Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 23 Mar 2023 21:45:57 +0100 Subject: [PATCH] Don't kill ssh connection on OOM (#2424) By default systemd kills the service which causes an OOM. That make sense for a typical service, however, for SSH we don't want this behavior: The connection should continue, just the command which caused OOM should be killed. --- .../etc/systemd/system/dropbear.service.d/hassos.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/buildroot-external/rootfs-overlay/etc/systemd/system/dropbear.service.d/hassos.conf b/buildroot-external/rootfs-overlay/etc/systemd/system/dropbear.service.d/hassos.conf index 1719de873..295e5bc2f 100644 --- a/buildroot-external/rootfs-overlay/etc/systemd/system/dropbear.service.d/hassos.conf +++ b/buildroot-external/rootfs-overlay/etc/systemd/system/dropbear.service.d/hassos.conf @@ -9,3 +9,4 @@ ExecStartPre= ExecStart= ExecStart=-/usr/sbin/dropbear -R -E -p 22222 -s KillMode=mixed +OOMPolicy=continue