summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines
diff options
context:
space:
mode:
authorSergey Solomin <sergey.solomin@us.ibm.com>2016-11-14 10:01:10 -0600
committerPatrick Williams <patrick@stwcx.xyz>2016-11-21 19:56:06 +0000
commit63248b4fbb1aff622fdd957ae672bab88eb768b4 (patch)
tree5f44ff98eb4596b64547cff2ce7ee8c6926b6370 /meta-openbmc-machines
parent29f637ffdaff48ea42ac838c348c8c861434029e (diff)
downloadtalos-openbmc-63248b4fbb1aff622fdd957ae672bab88eb768b4.tar.gz
talos-openbmc-63248b4fbb1aff622fdd957ae672bab88eb768b4.zip
Add sd unit file for start_host.sh
Add systemd unit, which starts start_host script after vcs on. Partially resolves openbmc/openbmc#647 Change-Id: Ieaa3713ce200bc5f156ba0e4548e264de6918e45 Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
Diffstat (limited to 'meta-openbmc-machines')
-rw-r--r--meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-pdbg-host-control/start_host@.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-pdbg-host-control/start_host@.service b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-pdbg-host-control/start_host@.service
new file mode 100644
index 000000000..6b291100d
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-pdbg-host-control/start_host@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Use pdbg to send putcfam command to start IPL
+Wants=vcs_on@.service
+After=vcs_on@.service
+Conflicts=obmc-chassis-stop@%i.target
+
+[Service]
+ExecStart={bindir}/start_host.sh
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=obmc-chassis-start@%i.target
OpenPOWER on IntegriCloud