diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-23 12:59:19 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-23 12:59:24 +0100 |
commit | ed622e21c28446e5c4c4e24551627dd940aca8bf (patch) | |
tree | cdcdaa635c4cb0672b24620b6dda2d4854f61cf4 | |
parent | 814e6873e119256f1c673a5de2ed7eaaad0afe8c (diff) | |
download | vyos-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.
-rw-r--r-- | src/systemd/dropbear@.service | 5 |
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 |