Andrew Geissler | cd2b946 | 2017-07-26 17:53:04 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Reboot host%i |
| 3 | Wants=obmc-host-stop@%i.target |
| 4 | After=obmc-host-stop@%i.target |
| 5 | |
| 6 | [Service] |
Matthew Barth | 1851aa6 | 2018-01-10 09:16:28 -0600 | [diff] [blame] | 7 | #ExecStart={base_bindir}/systemctl start obmc-host-start@%i.target |
| 8 | # This service is starting another target that conflicts with the |
| 9 | # target this service is running in. OpenBMC needs a refactor of |
| 10 | # how it does its host reset path. Until then, this short term |
| 11 | # solution does the job. |
| 12 | ExecStart=/bin/sh -c "sleep 5 && systemctl start obmc-host-start@%i.target" |
Andrew Geissler | cd2b946 | 2017-07-26 17:53:04 -0500 | [diff] [blame] | 13 | |
| 14 | |
| 15 | [Install] |
| 16 | WantedBy=obmc-host-reboot@%i.target |