summaryrefslogtreecommitdiff
path: root/rngd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'rngd.initd')
-rw-r--r--rngd.initd24
1 files changed, 24 insertions, 0 deletions
diff --git a/rngd.initd b/rngd.initd
new file mode 100644
index 0000000..907c46c
--- /dev/null
+++ b/rngd.initd
@@ -0,0 +1,24 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need localmount
+ after urandom
+ provide entropy
+}
+
+command=/usr/bin/rngd
+pidfile="/run/${SVCNAME}.pid"
+command_args="--pid-file=${pidfile} --background \
+${ENABLE_TPM} ${DISABLE_TPM} \
+${ENABLE_LEGACY_TPM} ${DISABLE_LEGACY_TPM} \
+${ENABLE_RDRAND} ${DISABLE_RDRAND} \
+${DISABLE_DARN} \
+${DISABLE_NIST} \
+${ENABLE_JITTER} ${DISABLE_JITTER} \
+${ENABLE_PKCS11} ${DISABLE_PKCS11} \
+${RANDOM_STEP} ${FILL_WATERMARK} \
+${RNG_OUTPUT}"
+start_stop_daemon_args="--wait 1000"
+retry="SIGKILL/5000"