Add BusName directives to service files
Adding the BusName directive to service files enables systemd to better
know when the daemon is started up enough to begin operations. This
is useful for dependencies, so that the dependent service is delayed
until its dependency is ready to process.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Id3214ce4f0d9536b560d4505e5b45eaed179941f
diff --git a/service_files/xyz.openbmc_project.fansensor.service b/service_files/xyz.openbmc_project.fansensor.service
index 7925ab5..563cf19 100644
--- a/service_files/xyz.openbmc_project.fansensor.service
+++ b/service_files/xyz.openbmc_project.fansensor.service
@@ -5,6 +5,8 @@
After=xyz.openbmc_project.EntityManager.service
[Service]
+Type=dbus
+BusName=xyz.openbmc_project.FanSensor
Restart=always
RestartSec=5
ExecStart=/usr/libexec/dbus-sensors/fansensor