Andrew Geissler | 6a133ab | 2020-01-31 14:13:06 -0600 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Stop instructions for host%i |
| 3 | Wants=obmc-host-stop-pre@%i.target |
| 4 | Before=obmc-host-stop-pre@%i.target |
| 5 | After=op-occ-disable@%i.service |
| 6 | After=xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service |
| 7 | Conflicts=obmc-host-startmin@%i.target |
| 8 | ConditionPathExists=/sys/class/fsi-master/fsi0/slave@00:00/cfam_id |
Andrew Geissler | f7f3f4a | 2020-10-12 10:19:22 -0500 | [diff] [blame^] | 9 | ConditionPathExists=!/run/openbmc/mpreboot@%i |
Andrew Geissler | 6a133ab | 2020-01-31 14:13:06 -0600 | [diff] [blame] | 10 | |
| 11 | [Service] |
| 12 | RemainAfterExit=yes |
| 13 | Type=oneshot |
| 14 | # TODO - Replace with official istep stopinstructions once available |
| 15 | ExecStart=/usr/bin/pdbg -a stop |
Andrew Geissler | 6d95c45 | 2020-06-05 14:43:08 -0500 | [diff] [blame] | 16 | ExecStart=/bin/rm -f /run/openbmc/host@%i-on |
Andrew Geissler | 6a133ab | 2020-01-31 14:13:06 -0600 | [diff] [blame] | 17 | |
| 18 | [Install] |
| 19 | WantedBy=obmc-host-stop@%i.target |