summaryrefslogtreecommitdiffstats
path: root/meta-openpower/common/recipes-phosphor/inventory-upload/inventory-upload/op-inventory-upload@.service
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openpower/common/recipes-phosphor/inventory-upload/inventory-upload/op-inventory-upload@.service')
-rw-r--r--meta-openpower/common/recipes-phosphor/inventory-upload/inventory-upload/op-inventory-upload@.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-openpower/common/recipes-phosphor/inventory-upload/inventory-upload/op-inventory-upload@.service b/meta-openpower/common/recipes-phosphor/inventory-upload/inventory-upload/op-inventory-upload@.service
new file mode 100644
index 000000000..022f6e73e
--- /dev/null
+++ b/meta-openpower/common/recipes-phosphor/inventory-upload/inventory-upload/op-inventory-upload@.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Inventory Upload
+Wants=obmc-host-start-pre@%i.target
+Before=obmc-host-start-pre@%i.target
+Conflicts=obmc-host-stop@%i.target
+
+[Service]
+Restart=no
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/env inventory_upload.py
+SyslogIdentifier=inventory_upload.py
+Environment="PYTHONUNBUFFERED=1"
+
+[Install]
+WantedBy=obmc-host-start@%i.target
OpenPOWER on IntegriCloud