blob: 689372f4a2a9091c38e5dc14c18ef4e5163e0689 [file] [log] [blame]
Andrew Geisslerc2123532020-01-14 10:39:47 -06001[Unit]
2Description=Reset host sensors
3After=phosphor-reset-host-check@%i.service
4Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
5After=mapper-wait@-xyz-openbmc_project-state-host%i.service
6ConditionPathExists=!/run/openbmc/host@%i-on
7
8[Service]
9Restart=no
10Type=oneshot
11ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/state/host0` /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Boot.Progress BootProgress s xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified"
12ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/state/host0` /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.OperatingSystem.Status OperatingSystemState s xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive"
13
14[Install]
15WantedBy=obmc-host-reset@%i.target