summaryrefslogtreecommitdiff
path: root/sys-apps/opal-utils/files/opal-prd.initd
blob: 935d39f6f94a804096db18160e53ca61cad9c50c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"