blob: 742fcadc75e6f7e82c2298457e57387d366ff198 [file] [log] [blame]
Matthew Barthec161282019-12-20 14:31:23 -06001[Unit]
2Description=Phosphor Power Regulators Config
Zev Weissd1307292022-04-19 17:13:28 -07003Requires=phosphor-regulators.service
4After=phosphor-regulators.service
Matthew Barthec161282019-12-20 14:31:23 -06005Wants=obmc-power-start-pre@0.target
6Before=obmc-power-start-pre@0.target
Andrew Geissler3da879e2023-01-26 13:31:25 -07007Before=obmc-power-start@0.service
Matthew Barthec161282019-12-20 14:31:23 -06008Conflicts=obmc-chassis-poweroff@0.target
Shawn McCarneydc777fa2022-05-06 12:26:37 -05009# Should not run again if BMC reboots while host is running
Matthew Barthec161282019-12-20 14:31:23 -060010ConditionPathExists=!/run/openbmc/chassis@0-on
11
12[Service]
13Type=oneshot
Shawn McCarneydc777fa2022-05-06 12:26:37 -050014RemainAfterExit=yes
Matthew Barthec161282019-12-20 14:31:23 -060015ExecStart=/usr/bin/regsctl config
16
17[Install]
18RequiredBy=obmc-chassis-poweron@0.target