From c71bf9ca97a04d578eb1f600fb7435b001fd17cd Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 18 Jan 2021 17:50:55 +0100 Subject: ssh: T3212: remove RestartPreventExitStatus from systemd unit When configuring SSH to only run inside a given VRF the system can not start SSHd on bootup as the Kernel will report EPERM (Operation not permitted) when loading the VRF BPF program. This returns the exit code 255 which is marked in the systemd unit file to stop restarting the service forever. Removing this limitation will restart the SSHd on startup and it will live inside the VRF till the end of days. (cherry picked from commit cdbac8f10b470a06aff54832da7f006aa3ed194e) --- data/templates/ssh/override.conf.tmpl | 1 + 1 file changed, 1 insertion(+) (limited to 'data') diff --git a/data/templates/ssh/override.conf.tmpl b/data/templates/ssh/override.conf.tmpl index 0abde6248..5f8f35e89 100644 --- a/data/templates/ssh/override.conf.tmpl +++ b/data/templates/ssh/override.conf.tmpl @@ -8,5 +8,6 @@ ConditionPathExists={{config_file}} ExecStart= ExecStart={{vrf_command}}/usr/sbin/sshd -f {{config_file}} -D $SSHD_OPTS Restart=always +RestartPreventExitStatus= RestartSec=10 RuntimeDirectoryPreserve=yes -- cgit v1.2.3