blob: fd45279b2b92eb01daacd913758dd6639a934344 [file] [log] [blame]
Andrew Geissler6a133ab2020-01-31 14:13:06 -06001[Unit]
2Description=Stop instructions for host%i
3Wants=obmc-host-stop-pre@%i.target
4Before=obmc-host-stop-pre@%i.target
5After=op-occ-disable@%i.service
6After=xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service
7Conflicts=obmc-host-startmin@%i.target
8ConditionPathExists=/sys/class/fsi-master/fsi0/slave@00:00/cfam_id
Andrew Geisslerf7f3f4a2020-10-12 10:19:22 -05009ConditionPathExists=!/run/openbmc/mpreboot@%i
Andrew Geissler6a133ab2020-01-31 14:13:06 -060010
11[Service]
12RemainAfterExit=yes
13Type=oneshot
14# TODO - Replace with official istep stopinstructions once available
15ExecStart=/usr/bin/pdbg -a stop
Andrew Geissler6d95c452020-06-05 14:43:08 -050016ExecStart=/bin/rm -f /run/openbmc/host@%i-on
Andrew Geissler6a133ab2020-01-31 14:13:06 -060017
18[Install]
19WantedBy=obmc-host-stop@%i.target