hypervisor: state management support
Some systems have a hypervisor firmware stack which they wish to track
and change the state of. This new state management object will provide
this function if a user selects to bring it into their system.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I6082c6e06c6731d71f2e580e1ab87af38917bb3a
diff --git a/service_files/xyz.openbmc_project.State.Hypervisor.service b/service_files/xyz.openbmc_project.State.Hypervisor.service
new file mode 100644
index 0000000..e0879bf
--- /dev/null
+++ b/service_files/xyz.openbmc_project.State.Hypervisor.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Phosphor Hypervisor State Manager
+Before=mapper-wait@-xyz-openbmc_project-state-hypervisor.service
+Wants=obmc-mapper.target
+After=obmc-mapper.target
+
+[Service]
+ExecStart=/usr/bin/phosphor-hypervisor-state-manager
+Restart=always
+Type=dbus
+BusName=xyz.openbmc_project.State.Hypervisor
+
+[Install]
+WantedBy=multi-user.target