xref: /openbmc/phosphor-state-manager/service_files/phosphor-reset-host-reboot-attempts@.service (revision 128ea8e3f1c56af1f7aa615a6f3b94088c9ba978)
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