blob: 8fada7e64ddbd89a2ad83f7208c252ca32481918 [file] [log] [blame]
Andrew Geissler6a133ab2020-01-31 14:13:06 -06001[Unit]
2Description=Stop instructions for host%i
Andrew Geisslerec6a1b52020-10-29 14:18:56 -05003After=obmc-host-stop-pre@%i.target
Andrew Geisslerec6a1b52020-10-29 14:18:56 -05004Before=obmc-host-stopping@%i.target
Andrew Geissler6a133ab2020-01-31 14:13:06 -06005After=op-occ-disable@%i.service
Adriana Kobylakbbb53392022-02-14 21:15:48 +00006After=openpower-update-bios-attr-table.service
Andrew Geissler6a133ab2020-01-31 14:13:06 -06007Conflicts=obmc-host-startmin@%i.target
Andrew Geisslera40a24c2022-09-26 13:15:57 -05008Conflicts=obmc-chassis-poweron@%i.target
Andrew Geissler6a133ab2020-01-31 14:13:06 -06009ConditionPathExists=/sys/class/fsi-master/fsi0/slave@00:00/cfam_id
Andrew Geisslerf7f3f4a2020-10-12 10:19:22 -050010ConditionPathExists=!/run/openbmc/mpreboot@%i
Andrew Geissler6a133ab2020-01-31 14:13:06 -060011
12[Service]
13RemainAfterExit=yes
14Type=oneshot
Jayanth Othayothae663a02022-06-01 06:33:47 -050015TimeoutStartSec=20
Ben Tyner7fe1aba2022-08-30 09:50:27 -050016ExecStart=/bin/sh -c 'systemctl stop attn_handler.service || true'
Jayanth Othayoth871c12b2021-12-05 22:58:42 -060017ExecStart=/usr/bin/openpower-proc-control threadStopAll
Andrew Geissler6a133ab2020-01-31 14:13:06 -060018
19[Install]
Andrew Geissler933bee72023-05-09 11:10:38 -050020#WantedBy=obmc-host-stop@%i.target