blob: 0cf5e7cd37fb1be02e6139f80211ed2040d9531c [file] [log] [blame]
Vishwanatha Subbannad8b3f612017-07-03 19:21:18 +05301[Unit]
2Description=Start Watchdog%i
3Wants=obmc-host-started@%i.target
4After=obmc-host-started@%i.target
5Wants=mapper-wait@-xyz-openbmc_project-watchdog-host%i.service
6After=mapper-wait@-xyz-openbmc_project-watchdog-host%i.service
7Conflicts=obmc-host-stop@%i.target
Patrick Williams0ae1c022017-07-12 10:37:42 -05008ConditionPathExists=!/run/openbmc/host@%i-on
Vishwanatha Subbannad8b3f612017-07-03 19:21:18 +05309
10[Service]
11Type=oneshot
Brad Bishopec5ea3b2018-06-07 16:17:15 -040012ExecStart=/bin/sh -c "busctl call `mapper get-service /xyz/openbmc_project/watchdog/host%i` /xyz/openbmc_project/watchdog/host%i org.freedesktop.DBus.Properties Set ssv xyz.openbmc_project.State.Watchdog Enabled b true"
Alexander Soldatov823d9e92018-01-22 10:07:06 +030013RemainAfterExit=yes
Brad Bishopec5ea3b2018-06-07 16:17:15 -040014SyslogIdentifier=obmc-enable-host-watchdog