Add service files into the repo
Upstream request is to have service files in repo now.
Change-Id: I0df43652acf0f98ad5e5d1548b64acddc38a89dd
Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
diff --git a/power-control/service-files/obmc-send-signal-pre-host-stop@.service b/power-control/service-files/obmc-send-signal-pre-host-stop@.service
new file mode 100644
index 0000000..ec6f453
--- /dev/null
+++ b/power-control/service-files/obmc-send-signal-pre-host-stop@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Broadcast pre host stop signal to dbus
+Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service
+After=mapper-wait@-xyz-openbmc_project-state-host%i.service
+
+[Service]
+Restart=no
+Type=oneshot
+ExecStart=/bin/sh -c "dbus-send --system --type=signal /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Host.PreHostStop"
+SyslogIdentifier=prehoststopsignal
+
+[Install]
+WantedBy=obmc-host-stop-pre@%i.target
+