phosphor-watchdog: don't enable watchdog on BMC reboot

There are applications we do not want to reenable after a BMC reboot and
the typical mechanism for that is a ConditionPathExists on a marker file
we create in /run.  This was missing for the Host watchdog enable
service, which caused the watchdog to be re-enabled even though the boot
process was complete.  Add the ConditionPathExists to prevent it from
becoming enabled.

Resolves openbmc/openbmc#1948.

Change-Id: Ibb64ee40d9b6313bc44205c751d130345be695ed
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
1 file changed
tree: 549bf9f73610702436a8d3fc58b183f571ae122c
  1. classes/
  2. common/
  3. conf/
  4. COPYING.apache-2.0
  5. COPYING.MIT
  6. LICENSE