xref: /openbmc/phosphor-state-manager/service_files/phosphor-reset-host-reboot-attempts@.service (revision c212353d86b381dfe894e515a985d9ba9cbe7bad)
1*c212353dSAndrew Geissler[Unit]
2*c212353dSAndrew GeisslerDescription=Reset host reboot counter
3*c212353dSAndrew GeisslerWants=mapper-wait@-xyz-openbmc_project-state-host%i.service
4*c212353dSAndrew GeisslerAfter=mapper-wait@-xyz-openbmc_project-state-host%i.service
5*c212353dSAndrew GeisslerConditionPathExists=!/run/openbmc/host@%i-on
6*c212353dSAndrew Geissler
7*c212353dSAndrew Geissler[Service]
8*c212353dSAndrew GeisslerRestart=no
9*c212353dSAndrew GeisslerType=oneshot
10*c212353dSAndrew GeisslerExecStart=/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*c212353dSAndrew Geissler
12*c212353dSAndrew Geissler[Install]
13*c212353dSAndrew GeisslerWantedBy=obmc-host-start@%i.target
14