| Andrew Geissler | c212353 | 2020-01-14 10:39:47 -0600 | [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 |