Ensure watchdog is disabled on chassis off

If the user elects to do a hard power off on a system
via the chassis poweroff target, need to ensure we still
disable the host watchdog.  This service will now be called
in both the host and chassis off targets.

Change-Id: I83c8c1b657056dab0dbbaaea0dea230f9c3ade4e
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/common/recipes-phosphor/chassis/obmc-watchdog.bb b/common/recipes-phosphor/chassis/obmc-watchdog.bb
index d065d63..72aa076 100644
--- a/common/recipes-phosphor/chassis/obmc-watchdog.bb
+++ b/common/recipes-phosphor/chassis/obmc-watchdog.bb
@@ -21,5 +21,12 @@
 STOP_INSTFMT = "obmc-stop-watchdog@{0}.service"
 STOP_FMT = "../${STOP_TMPL}:${STOP_TGTFMT}.requires/${STOP_INSTFMT}"
 
+# Ensure we also call the stop watchdog if the user
+# just directly cuts chassis power
+CHASSIS_TGTFMT= "obmc-chassis-poweroff@{1}.target"
+CHASSIS_FMT = "../${STOP_TMPL}:${CHASSIS_TGTFMT}.requires/${STOP_INSTFMT}"
+
+
 SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'START_FMT', 'OBMC_WATCHDOG_INSTANCES', 'OBMC_CHASSIS_INSTANCES')}"
 SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'STOP_FMT', 'OBMC_WATCHDOG_INSTANCES', 'OBMC_CHASSIS_INSTANCES')}"
+SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHASSIS_FMT', 'OBMC_WATCHDOG_INSTANCES', 'OBMC_CHASSIS_INSTANCES')}"