blob: 7ea7d3512be79bfd704c9b490b99b3f3c3817d4c [file] [log] [blame]
Andrew Jeffery9836e2b2020-02-11 12:12:07 +10301[Unit]
2Description=Console Client on %i
3Wants=dropbearkey.service
4After=dropbearkey.service
5
6[Service]
7# Unit defaults to a templated service
8Environment="DROPBEAR_RSAKEY_DIR=/etc/dropbear"
Ninad Palsule533f9702023-03-09 10:05:40 -06009EnvironmentFile=/etc/obmc-console/dropbear.env
10EnvironmentFile=-/etc/obmc-console/dropbear.%i.env
Andrew Jeffery9836e2b2020-02-11 12:12:07 +103011EnvironmentFile=-/etc/default/obmc-console-client
Andrew Geisslerb7dddbc2024-03-27 16:13:21 -050012ExecStart=/usr/sbin/dropbear -K 5 \
13 -r ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key \
14 -r ${DROPBEAR_RSAKEY_DIR}/dropbear_ecdsa_host_key \
15 -r ${DROPBEAR_RSAKEY_DIR}/dropbear_ed25519_host_key \
16 -c "/usr/bin/obmc-console-client -c /etc/obmc-console/client.%i.conf" \
17 -p %i \
18 -F $DROPBEAR_EXTRA_ARGS
Andrew Jeffery9836e2b2020-02-11 12:12:07 +103019SyslogIdentifier=console-client-%i
20ExecReload=/bin/kill -HUP $MAINPID
21KillMode=process
22
23[Install]
24WantedBy=default.target