Use the new hard power off target for chassis off requests

This will ensure the system is immedidately powered
off when a chassis off request is issued

Resolves openbmc/openbmc#1933

Change-Id: I7a6ab93e3b8e1f2b4e590cafc926775b989f107b
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/chassis_state_manager.cpp b/chassis_state_manager.cpp
index e1a2e0f..9c771bd 100644
--- a/chassis_state_manager.cpp
+++ b/chassis_state_manager.cpp
@@ -15,6 +15,7 @@
 using namespace phosphor::logging;
 
 constexpr auto CHASSIS_STATE_POWEROFF_TGT = "obmc-chassis-poweroff@0.target";
+constexpr auto CHASSIS_STATE_HARD_POWEROFF_TGT = "obmc-chassis-hard-poweroff@0.target";
 constexpr auto CHASSIS_STATE_POWERON_TGT = "obmc-chassis-poweron@0.target";
 
 constexpr auto ACTIVE_STATE = "active";
@@ -23,7 +24,8 @@
 /* Map a transition to it's systemd target */
 const std::map<server::Chassis::Transition,std::string> SYSTEMD_TARGET_TABLE =
 {
-        {server::Chassis::Transition::Off, CHASSIS_STATE_POWEROFF_TGT},
+        // Use the hard off target to ensure we shutdown immediately
+        {server::Chassis::Transition::Off, CHASSIS_STATE_HARD_POWEROFF_TGT},
         {server::Chassis::Transition::On, CHASSIS_STATE_POWERON_TGT}
 };