summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines/meta-openpower/common
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2016-08-08 08:53:13 -0400
committerPatrick Williams <patrick@stwcx.xyz>2016-09-06 11:51:23 +0000
commit7e164be09b4164301f717a5626695e50eb568cf0 (patch)
treeecc97a897bb791370a370f3d63970c317790cff6 /meta-openbmc-machines/meta-openpower/common
parent295bc64243b5505a18ef0e2f2d8b6f73da966cdf (diff)
downloadtalos-openbmc-7e164be09b4164301f717a5626695e50eb568cf0.tar.gz
talos-openbmc-7e164be09b4164301f717a5626695e50eb568cf0.zip
Add Systemd unit files for skeleton applications
Preparing to start these with systemd. Change-Id: I39a99242cee3e9e17e51356521d29bab5ad7d399 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-openbmc-machines/meta-openpower/common')
-rw-r--r--meta-openbmc-machines/meta-openpower/common/recipes-phosphor/inventory-upload/inventory-upload/op-inventory-upload@.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/inventory-upload/inventory-upload/op-inventory-upload@.service b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/inventory-upload/inventory-upload/op-inventory-upload@.service
new file mode 100644
index 000000000..39c1cfc85
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/inventory-upload/inventory-upload/op-inventory-upload@.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Inventory Upload
+Wants=obmc-host-start-pre@%i.target
+Before=obmc-host-start-pre@%i.target
+Conflicts=obmc-chassis-stop@%i.target
+
+[Service]
+Restart=no
+Type=oneshot
+RemainAfterExit=yes
+ExecStart={sbindir}/inventory_upload.py
+Environment="PYTHONUNBUFFERED=1"
+
+[Install]
+WantedBy=obmc-chassis-start@%i.target
OpenPOWER on IntegriCloud