Vishwanatha Subbanna | d8b3f61 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Start Watchdog%i |
| 3 | Wants=obmc-host-started@%i.target |
| 4 | After=obmc-host-started@%i.target |
| 5 | Wants=mapper-wait@-xyz-openbmc_project-watchdog-host%i.service |
| 6 | After=mapper-wait@-xyz-openbmc_project-watchdog-host%i.service |
| 7 | Conflicts=obmc-host-stop@%i.target |
Patrick Williams | 0ae1c02 | 2017-07-12 10:37:42 -0500 | [diff] [blame] | 8 | ConditionPathExists=!/run/openbmc/host@%i-on |
Vishwanatha Subbanna | d8b3f61 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 9 | |
| 10 | [Service] |
| 11 | Type=oneshot |
Brad Bishop | ec5ea3b | 2018-06-07 16:17:15 -0400 | [diff] [blame] | 12 | ExecStart=/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 Soldatov | 823d9e9 | 2018-01-22 10:07:06 +0300 | [diff] [blame] | 13 | RemainAfterExit=yes |
Brad Bishop | ec5ea3b | 2018-06-07 16:17:15 -0400 | [diff] [blame] | 14 | SyslogIdentifier=obmc-enable-host-watchdog |