summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-19 16:12:27 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-19 16:12:27 +0200
commit587416ef606827c5cbf6ac49834fc65283794fbb (patch)
treeeb600ee73115f881e2e332002d13f3727391cf48 /src/systemd
parenta9daaa8409347ad9e51d75f76f5985b8e9f2e365 (diff)
downloadvyos-1x-587416ef606827c5cbf6ac49834fc65283794fbb.tar.gz
vyos-1x-587416ef606827c5cbf6ac49834fc65283794fbb.zip
console-server: T2490: add SSH support for direct device access
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/dropbear@.service6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/systemd/dropbear@.service b/src/systemd/dropbear@.service
index a7057ffe1..606a7ea6d 100644
--- a/src/systemd/dropbear@.service
+++ b/src/systemd/dropbear@.service
@@ -2,13 +2,13 @@
Description=Dropbear SSH per-connection server
Requires=dropbearkey.service
Wants=conserver-server.service
-After=mongodb.service
+ConditionPathExists=/run/conserver/conserver.cf
After=dropbearkey.service vyos-router.service conserver-server.service
[Service]
Type=forking
-ExecStartPre=/usr/bin/bash -c '/usr/bin/systemctl set-environment PORT=$(cli-shell-api returnValue service console-server device "%I" ssh port)'
+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
KillMode=process
-
+Restart=on-failure