blob: ad2b8b265f14b53891aa137a80bdda7c9716a4bf [file] [log] [blame]
Brad Bishop3c90f592016-08-08 08:53:13 -04001[Unit]
2Description=Wait for Power%i to turn off
3Before=obmc-power-off@%i.target
4Wants=obmc-power-stop@%i.target
5Before=obmc-power-stop@%i.target
6Wants=mapper-wait@-org-openbmc-control-power%i.service
7After=mapper-wait@-org-openbmc-control-power%i.service
Josh D. Kingb57615e2017-04-06 14:43:46 -05008Conflicts=obmc-chassis-poweron@%i.target
Brad Bishop3c90f592016-08-08 08:53:13 -04009
10[Service]
11Type=oneshot
12RemainAfterExit=yes
13ExecStart={sbindir}/pgood_wait /org/openbmc/control/power%i off
Andrew Geissler7dc14332017-03-07 13:47:23 -060014ExecStart=/bin/rm -f /run/openbmc/chassis@%i-on
Andrew Geisslerf9bba792017-05-01 12:46:57 -050015ExecStart=/bin/rm -f /run/openbmc/host@%i-on
Brad Bishop3c90f592016-08-08 08:53:13 -040016
17[Install]
Josh D. Kinga283e072017-04-06 15:56:37 -050018WantedBy=obmc-host-stop@%i.target