diff mbox

opal-prd: add systemd scripts

Message ID 1445982411-17636-1-git-send-email-clg@fr.ibm.com
State Accepted
Headers show

Commit Message

Cédric Le Goater Oct. 27, 2015, 9:46 p.m. UTC
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@fr.ibm.com>
---
 external/opal-prd/opal-prd.service |   10 ++++++++++
 external/opal-prd/opal-prd.socket  |    8 ++++++++
 2 files changed, 18 insertions(+)

Comments

Stewart Smith Nov. 9, 2015, 3:23 a.m. UTC | #1
Cédric Le Goater <clg@fr.ibm.com> writes:
> 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@fr.ibm.com>

thanks, merged to master as of 61d4601.

Hopefully these fail gracefully if run on, say, pseries.
diff mbox

Patch

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