regulators: Host reboot should not redo operations
While powering on the host, a "warm reboot" of the host may occur one or
more times. For example, the host boot process may update hardware in a
way that requires a host reboot.
During a "warm reboot" of the host, power to the chassis remains on. As
a result, the following regulator operations should *not* be performed:
* Configuring the regulators again.
* Disabling and then re-enabling regulator monitoring for sensors and
redundant phase faults.
Modify several regulator systemd service files so that those regulator
operations are not performed during a "warm reboot" of the host.
Test Plan:
* https://gist.github.com/smccarney/c2eea054b7439b84b55f4fb89f474413
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
Change-Id: I5e4c97168f0f7cdd5d7d6bfed227c5769a86d5a8
diff --git a/services/phosphor-regulators-monitor-enable.service b/services/phosphor-regulators-monitor-enable.service
index 033ebea..8173557 100644
--- a/services/phosphor-regulators-monitor-enable.service
+++ b/services/phosphor-regulators-monitor-enable.service
@@ -7,6 +7,7 @@
Conflicts=obmc-chassis-poweroff@0.target
[Service]
+Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/regsctl monitor --enable