Add Systemd unit files for skeleton applications
Preparing to start these with systemd.
Change-Id: I39a99242cee3e9e17e51356521d29bab5ad7d399
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/common/recipes-phosphor/obmc-phosphor-sys/obmc-control-bmc/org.openbmc.control.Bmc@.service b/common/recipes-phosphor/obmc-phosphor-sys/obmc-control-bmc/org.openbmc.control.Bmc@.service
new file mode 100644
index 0000000..4d26f96
--- /dev/null
+++ b/common/recipes-phosphor/obmc-phosphor-sys/obmc-control-bmc/org.openbmc.control.Bmc@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Phosphor BMC%i Control
+
+[Service]
+Restart=always
+ExecStart={sbindir}/control_bmc.exe
+Type=dbus
+BusName={BUSNAME}
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}
diff --git a/common/recipes-phosphor/obmc-phosphor-sys/obmc-mgr-state/obmc-mgr-state.service b/common/recipes-phosphor/obmc-phosphor-sys/obmc-mgr-state/obmc-mgr-state.service
new file mode 100644
index 0000000..2a07c2b
--- /dev/null
+++ b/common/recipes-phosphor/obmc-phosphor-sys/obmc-mgr-state/obmc-mgr-state.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Restore Last State
+Wants=obmc-mgr-state.target
+After=obmc-mgr-state.target
+
+[Service]
+Restart=no
+Type=oneshot
+ExecStart={sbindir}/discover_system_state.py
+Environment="PYTHONUNBUFFERED=1"
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}
diff --git a/common/recipes-phosphor/obmc-phosphor-sys/obmc-mgr-state/obmc-mgr-state.target b/common/recipes-phosphor/obmc-phosphor-sys/obmc-mgr-state/obmc-mgr-state.target
new file mode 100644
index 0000000..fef2a1f
--- /dev/null
+++ b/common/recipes-phosphor/obmc-phosphor-sys/obmc-mgr-state/obmc-mgr-state.target
@@ -0,0 +1,2 @@
+[Unit]
+Description=Restore Last State
diff --git a/common/recipes-phosphor/obmc-phosphor-sys/obmc-mgr-system/org.openbmc.managers.System.service b/common/recipes-phosphor/obmc-phosphor-sys/obmc-mgr-system/org.openbmc.managers.System.service
new file mode 100644
index 0000000..abca0dc
--- /dev/null
+++ b/common/recipes-phosphor/obmc-phosphor-sys/obmc-mgr-system/org.openbmc.managers.System.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Phoshpor System Manager
+Wants=obmc-mapper.target
+After=obmc-mapper.target
+
+[Service]
+Restart=always
+ExecStart={sbindir}/system_manager.py
+Type=dbus
+BusName={BUSNAME}
+Environment="PYTHONUNBUFFERED=1"
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}
diff --git a/common/recipes-phosphor/obmc-phosphor-sys/obmc-mgr-system/startup-hacks.service b/common/recipes-phosphor/obmc-phosphor-sys/obmc-mgr-system/startup-hacks.service
new file mode 100644
index 0000000..2fca986
--- /dev/null
+++ b/common/recipes-phosphor/obmc-phosphor-sys/obmc-mgr-system/startup-hacks.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Startup Hacks
+
+[Service]
+Restart=no
+Type=oneshot
+ExecStart={sbindir}/startup_hacks.sh
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}