Andrew Geissler | 22957e8 | 2018-03-27 19:39:05 -0700 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Reset host reboot counter |
| 3 | Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service |
| 4 | After=mapper-wait@-xyz-openbmc_project-state-host%i.service |
| 5 | ConditionPathExists=!/run/openbmc/host@%i-on |
| 6 | |
| 7 | [Service] |
| 8 | Restart=no |
| 9 | Type=oneshot |
| 10 | ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/state/host%i` /xyz/openbmc_project/state/host%i xyz.openbmc_project.Control.Boot.RebootAttempts AttemptsLeft u 3" |
| 11 | |
| 12 | [Install] |
| 13 | WantedBy=obmc-host-start@%i.target |