| [Unit] |
| Description=Store host logs for %i on the eMMC |
| BindsTo=emmc-available.target |
| After=emmc-available.target |
| After=obmc-console@%i.service |
| |
| [Service] |
| Type=simple |
| ExecStartPre=mkdir -p @HOST_LOG_DIR@ |
| # obmc-console-client will immediately exit if we don't give it a stdin |
| # that it can block on forever, so we hook it up to /dev/null since that never |
| # feeds it data. |
| ExecStart=/bin/sh -c '/usr/bin/obmc-console-client -i %i < <(tail -f /dev/null) >> @HOST_LOG_DIR@/%i.log' |
| |
| [Install] |
| WantedBy=emmc-available.target |