regulators: Add phosphor-regulators service dependencies
'regsctl' can't do anything useful until phosphor-regulators is running,
so add systemd unit dependencies to ensure it's started before
regulators-config and regulators-monitor-{enable,disable}.
While we're at it, change phosphor-regulators.service to be of type dbus
so we get a more meaningful check that it's really up and running, and
tweak the instantiation of ManagerObject so that it emits the necessary
signals.
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: I724e4f335c4347ad6789e2d68cfb58c6387e6073
diff --git a/phosphor-regulators/src/manager.cpp b/phosphor-regulators/src/manager.cpp
index 5eeccc9..a99ec11 100644
--- a/phosphor-regulators/src/manager.cpp
+++ b/phosphor-regulators/src/manager.cpp
@@ -72,9 +72,10 @@
const fs::path testConfigFileDir{"/etc/phosphor-regulators"};
Manager::Manager(sdbusplus::bus::bus& bus, const sdeventplus::Event& event) :
- ManagerObject{bus, managerObjPath, ManagerObject::action::defer_emit},
- bus{bus}, eventLoop{event}, services{bus},
- phaseFaultTimer{event, std::bind(&Manager::phaseFaultTimerExpired, this)},
+ ManagerObject{bus, managerObjPath}, bus{bus}, eventLoop{event},
+ services{bus}, phaseFaultTimer{event,
+ std::bind(&Manager::phaseFaultTimerExpired,
+ this)},
sensorTimer{event, std::bind(&Manager::sensorTimerExpired, this)}
{
// Subscribe to D-Bus interfacesAdded signal from Entity Manager. This