summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/recipes-phosphor/state/files/phosphor-reset-host-reboot-attempts@.service
blob: 934ebaef5596a03eb6d5fea4a80a5151f9122868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=Reset host reboot counter
Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
After=mapper-wait@-xyz-openbmc_project-state-host%i.service
ConditionPathExists=!/run/openbmc/host@%i-on

[Service]
Restart=no
Type=oneshot
ExecStart=/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 4"

[Install]
WantedBy=obmc-host-start@%i.target
OpenPOWER on IntegriCloud