summaryrefslogtreecommitdiff
path: root/src/systemd/dropbear@.service
blob: a7057ffe1f13c0f1058c9c11b666695304483ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Dropbear SSH per-connection server
Requires=dropbearkey.service
Wants=conserver-server.service
After=mongodb.service
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)'
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