service-deps: add missing target monitor dep
The target and service monitor software makes d-bus calls to the dump
manager service and does not handle it missing in a graceful manner.
Ensure the dump manager service is running before starting this service.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I46223fae1a202893ec3be7c9d8fd08ba430f3e8b
diff --git a/service_files/phosphor-systemd-target-monitor.service b/service_files/phosphor-systemd-target-monitor.service
index 1a9fc06..67dacfc 100644
--- a/service_files/phosphor-systemd-target-monitor.service
+++ b/service_files/phosphor-systemd-target-monitor.service
@@ -1,6 +1,8 @@
[Unit]
Description=phosphor systemd target monitor
After=dbus.service
+Wants=xyz.openbmc_project.Dump.Manager.service
+After=xyz.openbmc_project.Dump.Manager.service
[Service]
Restart=always