From ed622e21c28446e5c4c4e24551627dd940aca8bf Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 23 Jan 2021 12:59:19 +0100 Subject: console-server: T2490: dropbear can restart as long as necessary Lift the default daemon startup rate-limit when launching the dropbear service used by SSH connections to the console port. --- src/systemd/dropbear@.service | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/systemd/dropbear@.service b/src/systemd/dropbear@.service index 606a7ea6d..a3fde5708 100644 --- a/src/systemd/dropbear@.service +++ b/src/systemd/dropbear@.service @@ -4,6 +4,7 @@ Requires=dropbearkey.service Wants=conserver-server.service ConditionPathExists=/run/conserver/conserver.cf After=dropbearkey.service vyos-router.service conserver-server.service +StartLimitIntervalSec=0 [Service] Type=forking @@ -11,4 +12,6 @@ ExecStartPre=/usr/bin/bash -c '/usr/bin/systemctl set-environment PORT=$(cli-she ExecStart=-/usr/sbin/dropbear -w -j -k -r /etc/dropbear/dropbear_rsa_host_key -c "/usr/bin/console %I" -P /run/conserver/dropbear.%I.pid -p ${PORT} PIDFile=/run/conserver/dropbear.%I.pid KillMode=process -Restart=on-failure +Restart=always +RestartSec=10 +RuntimeDirectoryPreserve=yes -- cgit v1.2.3