blob: 35de4304bd4bdb1e967a4d93778198fd21cdc47e [file] [log] [blame]
Andrew Geissler22957e82018-03-27 19:39:05 -07001[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