blob: 35de4304bd4bdb1e967a4d93778198fd21cdc47e [file] [log] [blame]
Andrew Geisslerc2123532020-01-14 10:39:47 -06001[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