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. |
Andrew Geissler | 510ae37 | 2018-03-27 13:56:26 -0700 | [diff] [blame] | 12 | # Since this is a part of the reboot target, call the startmin |
| 13 | # target which does the minimum required to start the host. |
Lei YU | 5ae34a5 | 2018-08-01 14:02:26 +0800 | [diff] [blame] | 14 | ExecStart=/bin/sh -c "sleep ${{REBOOT_DELAY}} && systemctl start obmc-host-startmin@%i.target" |
| 15 | EnvironmentFile={envfiledir}/obmc/phosphor-reboot-host/reboot.conf |
Andrew Geissler | cd2b946 | 2017-07-26 17:53:04 -0500 | [diff] [blame] | 16 | |
| 17 | [Install] |
| 18 | WantedBy=obmc-host-reboot@%i.target |