1[Unit]
2Description=Reset host reboot counter
3Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
4After=mapper-wait@-xyz-openbmc_project-state-host%i.service
5ConditionPathExists=!/run/openbmc/host@%i-on
6
7[Service]
8Restart=no
9Type=oneshot
10ExecStart=/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]
13WantedBy=obmc-host-start@%i.target
14