summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-23 12:59:19 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-23 12:59:24 +0100
commited622e21c28446e5c4c4e24551627dd940aca8bf (patch)
treecdcdaa635c4cb0672b24620b6dda2d4854f61cf4 /src/systemd
parent814e6873e119256f1c673a5de2ed7eaaad0afe8c (diff)
downloadvyos-1x-ed622e21c28446e5c4c4e24551627dd940aca8bf.tar.gz
vyos-1x-ed622e21c28446e5c4c4e24551627dd940aca8bf.zip
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.
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/dropbear@.service5
1 files changed, 4 insertions, 1 deletions
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