Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Reboot host%i |
| 3 | Wants=obmc-host-stop@%i.target |
| 4 | After=obmc-host-stop@%i.target |
Andrew Geissler | 79aa01a | 2020-01-14 15:05:09 -0600 | [diff] [blame] | 5 | Wants=obmc-host-stopped@%i.target |
| 6 | After=obmc-host-stopped@%i.target |
Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 7 | |
| 8 | [Service] |
Andrew Geissler | 128ea8e | 2022-06-22 12:28:15 -0400 | [diff] [blame] | 9 | # This service is running a script that is starting another target that |
| 10 | # conflicts with the target this service is running in. OpenBMC needs a |
| 11 | # refactor of how it does its host reset path. Until then, this short term |
Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 12 | # solution does the job. |
| 13 | # Since this is a part of the reboot target, call the startmin |
Andrew Geissler | 128ea8e | 2022-06-22 12:28:15 -0400 | [diff] [blame] | 14 | # target which does the minimum required to start the host if the reboot count |
| 15 | # is not 0, otherwise it will quiesce the host. |
| 16 | ExecStart=/usr/libexec/host-reboot %i |
Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [diff] [blame] | 17 | |
| 18 | [Install] |
| 19 | WantedBy=obmc-host-reboot@%i.target |