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-host-stopping@.service b/power-control/service-files/obmc-send-signal-host-stopping@.service
new file mode 100644
index 0000000..0f89f94
--- /dev/null
+++ b/power-control/service-files/obmc-send-signal-host-stopping@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Broadcast host stopping 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.HostStoping"
+SyslogIdentifier=hoststoppingsignal
+
+[Install]
+WantedBy=obmc-host-stopping@%i.target