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 | 467d301 | 2021-11-04 08:06:09 -0500 | [diff] [blame] | 12 | ExecStart=/usr/sbin/dropbear -K 5 -r ${DROPBEAR_RSAKEY_DIR}/dropbear_rsa_host_key -c "/usr/bin/obmc-console-client -c /etc/obmc-console/client.%i.conf" -p %i -F $DROPBEAR_EXTRA_ARGS |
Andrew Jeffery | 9836e2b | 2020-02-11 12:12:07 +1030 | [diff] [blame] | 13 | SyslogIdentifier=console-client-%i |
| 14 | ExecReload=/bin/kill -HUP $MAINPID |
| 15 | KillMode=process |
| 16 | |
| 17 | [Install] |
| 18 | WantedBy=default.target |