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.
This commit is contained in:
Stefan Agner 2023-03-23 21:45:57 +01:00 committed by GitHub
parent 689089a949
commit a8f6f7aa43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,3 +9,4 @@ ExecStartPre=
ExecStart= ExecStart=
ExecStart=-/usr/sbin/dropbear -R -E -p 22222 -s ExecStart=-/usr/sbin/dropbear -R -E -p 22222 -s
KillMode=mixed KillMode=mixed
OOMPolicy=continue