summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/opal-utils/files/opal-prd.initd')
-rw-r--r--sys-apps/opal-utils/files/opal-prd.initd20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys-apps/opal-utils/files/opal-prd.initd b/sys-apps/opal-utils/files/opal-prd.initd
new file mode 100644
index 000000000000..935d39f6f94a
--- /dev/null
+++ b/sys-apps/opal-utils/files/opal-prd.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name="OPAL PRD daemon"
+description="Processor RunTime Diagnostics daemon"
+command=/usr/sbin/opal-prd
+command_args="${OPAL_PRD_OPTS}"
+command_background="true"
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+ need dev-mount sysfs
+ use logger
+ keyword -containers
+
+}
+
+required_dirs="/sys/firmware/devicetree/base/ibm,opal/diagnostics"
+required_files="/dev/opal-prd"