[Skiboot] [PATCH] opal-prd: add systemd scripts
Cédric Le Goater
clg at fr.ibm.com
Wed Oct 28 08:46:51 AEDT 2015
These systemd scripts start the opal-prd daemon and we have been
duplicating these in a few distributions already. skiboot seems
like a good place to keep a common reference.
Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
---
external/opal-prd/opal-prd.service | 10 ++++++++++
external/opal-prd/opal-prd.socket | 8 ++++++++
2 files changed, 18 insertions(+)
Index: skiboot.git/external/opal-prd/opal-prd.service
===================================================================
--- /dev/null
+++ skiboot.git/external/opal-prd/opal-prd.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=OPAL PRD daemon
+Requires=opal-prd.socket
+
+[Service]
+StandardInput=socket
+ExecStart=/usr/sbin/opal-prd --pnor /dev/mtd0
+
+[Install]
+WantedBy=multi-user.target
Index: skiboot.git/external/opal-prd/opal-prd.socket
===================================================================
--- /dev/null
+++ skiboot.git/external/opal-prd/opal-prd.socket
@@ -0,0 +1,8 @@
+[Unit]
+Description=OPAL PRD Listen Socket
+
+[Socket]
+ListenStream=/run/opal-prd-control
+
+[Install]
+WantedBy=sockets.target
More information about the Skiboot
mailing list