Andrew Jeffery | 9836e2b | 2020-02-11 12:12:07 +1030 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Console Client on %i |
| 3 | Wants=dropbearkey.service |
| 4 | After=dropbearkey.service |
| 5 | |
| 6 | [Service] |
| 7 | # Unit defaults to a templated service |
| 8 | Environment="DROPBEAR_RSAKEY_DIR=/etc/dropbear" |
Ninad Palsule | 533f970 | 2023-03-09 10:05:40 -0600 | [diff] [blame] | 9 | EnvironmentFile=/etc/obmc-console/dropbear.env |
| 10 | EnvironmentFile=-/etc/obmc-console/dropbear.%i.env |
Andrew Jeffery | 9836e2b | 2020-02-11 12:12:07 +1030 | [diff] [blame] | 11 | EnvironmentFile=-/etc/default/obmc-console-client |
Andrew Geissler | b7dddbc | 2024-03-27 16:13:21 -0500 | [diff] [blame] | 12 | ExecStart=/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 Jeffery | 9836e2b | 2020-02-11 12:12:07 +1030 | [diff] [blame] | 19 | SyslogIdentifier=console-client-%i |
| 20 | ExecReload=/bin/kill -HUP $MAINPID |
| 21 | KillMode=process |
| 22 | |
| 23 | [Install] |
| 24 | WantedBy=default.target |