commit | 92761db402e6e5de04e2121a78a53dc4fd883061 | [log] [tgz] |
---|---|---|
author | Andrew Geissler <andrewg@us.ibm.com> | Tue Jul 25 13:03:32 2017 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Tue Jul 25 21:47:06 2017 +0000 |
tree | b714e239bedb32817781042c6a9ad270bcd9f032 | |
parent | 6425ad26c32aee9608375ce5f6e21f129a8d16d5 [diff] |
Ensure chassis-poweroff called on shutdown errors With the recent refactor to the shutdown targets, need to ensure the obmc-chassis-poweroff target is called if the host-shutdown times out so that the system properly shuts down Resolves openbmc/openbmc#2027 Change-Id: I8b1374611776a4027beaa7646862dc4be51df838 Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/common/recipes-core/systemd/obmc-targets/obmc-host-shutdown@.target b/common/recipes-core/systemd/obmc-targets/obmc-host-shutdown@.target index 9e7defe..4768a56 100644 --- a/common/recipes-core/systemd/obmc-targets/obmc-host-shutdown@.target +++ b/common/recipes-core/systemd/obmc-targets/obmc-host-shutdown@.target
@@ -2,5 +2,5 @@ Description=Power%i Host Off Wants={SYSTEMD_DEFAULT_TARGET} RefuseManualStop=yes -OnFailure=obmc-host-stop@%i.target +OnFailure=obmc-chassis-poweroff@%i.target OnFailureJobMode=flush