blob: 102e9690bc6e5042cfaed4d8bdcd3a8166f2ce47 [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"
13
14[Install]
Andrew Geissler0d1c3f12021-07-27 16:21:01 -040015WantedBy=multi-user.target