blob: 14ca087f491f10518e3ba1a19012b3af2d68d68b [file] [log] [blame]
Andrew Geisslerc2123532020-01-14 10:39:47 -06001[Unit]
2Description=Reset host sensors
Andrew Geisslerc2123532020-01-14 10:39:47 -06003Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
4After=mapper-wait@-xyz-openbmc_project-state-host%i.service
Andrew Geissler0d1c3f12021-07-27 16:21:01 -04005After=obmc-host-reset@%i.target
Andrew Geisslerc2123532020-01-14 10:39:47 -06006ConditionPathExists=!/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"
Andrew Geissler828f8742021-12-03 14:15:22 -060013ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/state/host0` /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Host RestartCause s xyz.openbmc_project.State.Host.RestartCause.Unknown"
14
Andrew Geisslerc2123532020-01-14 10:39:47 -060015
16[Install]
Andrew Geissler0d1c3f12021-07-27 16:21:01 -040017WantedBy=multi-user.target