diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-21 17:24:57 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-21 17:25:38 +0100 |
commit | d5804b19d3ffecdd4fe6bd89d50ac84dabb549fd (patch) | |
tree | 905af99b024fac316412492b81947da28d6bb8ff /src/systemd/dropbear@.service | |
parent | b0b03e21d24411c5a994d8e5c8009f39d9b6f639 (diff) | |
download | vyos-1x-d5804b19d3ffecdd4fe6bd89d50ac84dabb549fd.tar.gz vyos-1x-d5804b19d3ffecdd4fe6bd89d50ac84dabb549fd.zip |
console-server: T2490: do not use cli-shell-api in systemd unit
Diffstat (limited to 'src/systemd/dropbear@.service')
-rw-r--r-- | src/systemd/dropbear@.service | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/systemd/dropbear@.service b/src/systemd/dropbear@.service index a3fde5708..acf926af9 100644 --- a/src/systemd/dropbear@.service +++ b/src/systemd/dropbear@.service @@ -8,9 +8,8 @@ StartLimitIntervalSec=0 [Service] Type=forking -ExecStartPre=/usr/bin/bash -c '/usr/bin/systemctl set-environment PORT=$(cli-shell-api returnActiveValue service console-server device "%I" ssh port)' -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 +ExecStart=/usr/sbin/dropbear -w -j -k -r /etc/dropbear/dropbear_rsa_host_key -P /run/dropbear/dropbear.%I.pid -p %I +PIDFile=/run/dropbear/dropbear.%I.pid KillMode=process Restart=always RestartSec=10 |