Andrew Geissler | 119e5a2 | 2022-03-25 08:54:53 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Check if flash side switch is needed |
| 3 | Wants=obmc-host-start-pre@0.target |
| 4 | Before=obmc-host-start-pre@0.target |
| 5 | Wants=obmc-mapper.target |
| 6 | After=obmc-mapper.target |
| 7 | Wants=xyz.openbmc_project.Software.BMC.Updater.service |
| 8 | After=xyz.openbmc_project.Software.BMC.Updater.service |
| 9 | Wants=xyz.openbmc_project.State.BMC.service |
| 10 | After=xyz.openbmc_project.State.BMC.service |
| 11 | Wants=xyz.openbmc_project.State.Chassis.service |
| 12 | After=xyz.openbmc_project.State.Chassis.service |
| 13 | Wants=xyz.openbmc_project.Settings.service |
| 14 | After=xyz.openbmc_project.Settings.service |
| 15 | ConditionPathExists=!/run/openbmc/host@0-on |
| 16 | |
| 17 | [Service] |
| 18 | Restart=no |
| 19 | Type=oneshot |
| 20 | RemainAfterExit=no |
| 21 | ExecStart=/usr/bin/phosphor-bmc-side-switch |
| 22 | |
| 23 | [Install] |
| 24 | WantedBy=obmc-host-startmin@0.target |