blob: dfdef3c62f640bab7d743d987e876f5e16750a7b [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
Potin Lai106152c2022-04-12 14:51:34 +080011ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/state/host%i` /xyz/openbmc_project/state/host%i 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/host%i` /xyz/openbmc_project/state/host%i xyz.openbmc_project.State.OperatingSystem.Status OperatingSystemState s xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive"
13ExecStart=/bin/sh -c "busctl set-property `mapper get-service /xyz/openbmc_project/state/host%i` /xyz/openbmc_project/state/host%i xyz.openbmc_project.State.Host RestartCause s xyz.openbmc_project.State.Host.RestartCause.Unknown"
Andrew Geissler828f8742021-12-03 14:15:22 -060014
Andrew Geisslerc2123532020-01-14 10:39:47 -060015
16[Install]
Andrew Geissler0d1c3f12021-07-27 16:21:01 -040017WantedBy=multi-user.target