Remove 'Wants' on phosphor-ipmi-host
The service file for phosphor-ipmi-host already has
WantedBy=multi-user.target, which will instruct systemd to queue a start
task for phosphor-ipmi-host. Having a 'Wants' statement here is
therefore unnecessary.
This duplicate start task can become a problem if phosphor-ipmi-host
fails to start in time and is restarted by systemd. When
phosphor-ipmi-net tries to start later, it can trigger another start
task for phosphor-ipmi-host within the start burst limit, putting
phosphor-ipmi-host into a permanent timeout state.
Tested: With this change, phosphor-ipmi-host no longer has "Start
request repeated too quickly" across 1,000 powercycles.
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
Change-Id: Iabcc57e2ba73522d373d91d02b12fa6e6f389979
diff --git a/phosphor-ipmi-net@.service b/phosphor-ipmi-net@.service
index 7008066..beb3785 100644
--- a/phosphor-ipmi-net@.service
+++ b/phosphor-ipmi-net@.service
@@ -1,6 +1,5 @@
[Unit]
Description=Network IPMI daemon
-Wants=phosphor-ipmi-host.service
After=phosphor-ipmi-host.service
Requires=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device