1[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
8ConditionPathExists=!/run/openbmc/host@%i-on
9
10[Service]
11Type=oneshot
12ExecStart=/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"
13RemainAfterExit=yes
14SyslogIdentifier=obmc-enable-host-watchdog
15