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-flash/obmc-flash-bios/obmc-flash-init.service b/common/recipes-phosphor/obmc-phosphor-flash/obmc-flash-bios/obmc-flash-init.service
new file mode 100644
index 0000000..4893cd1
--- /dev/null
+++ b/common/recipes-phosphor/obmc-phosphor-flash/obmc-flash-bios/obmc-flash-init.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Initialize BIOS Flash
+Wants=mapper-wait@-org-openbmc-control-flash-bios.service
+After=mapper-wait@-org-openbmc-control-flash-bios.service
+
+[Service]
+Restart=no
+ExecStart={sbindir}/mapper call /org/openbmc/control/flash/bios org.openbmc.Flash init
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}
diff --git a/common/recipes-phosphor/obmc-phosphor-flash/obmc-flash-bios/org.openbmc.control.Flash.service b/common/recipes-phosphor/obmc-phosphor-flash/obmc-flash-bios/org.openbmc.control.Flash.service
new file mode 100644
index 0000000..fefd172
--- /dev/null
+++ b/common/recipes-phosphor/obmc-phosphor-flash/obmc-flash-bios/org.openbmc.control.Flash.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Phosphor BIOS Code Update
+Wants=mapper-wait@-org-openbmc-managers-Download.service
+After=mapper-wait@-org-openbmc-managers-Download.service
+
+[Service]
+Restart=always
+ExecStart={sbindir}/flash_bios.exe
+Type=dbus
+BusName={BUSNAME}
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}