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-chassis/obmc-mgr-inventory/obmc-sync-inventory-item@.service b/common/recipes-phosphor/obmc-phosphor-chassis/obmc-mgr-inventory/obmc-sync-inventory-item@.service
new file mode 100644
index 0000000..33b1166
--- /dev/null
+++ b/common/recipes-phosphor/obmc-phosphor-chassis/obmc-mgr-inventory/obmc-sync-inventory-item@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Sync %I
+Wants=obmc-read-eeprom@%i.service
+After=obmc-read-eeprom@%i.service
+
+[Service]
+Restart=no
+Type=oneshot
+EnvironmentFile={envfiledir}/obmc/sync_inventory_item/%I
+ExecStart={sbindir}/sync_inventory_items.py -t $FRU_TYPE -n $FRU_NAME -p ${{PROPERTY}} -s $SYNC_TYPE
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}