summaryrefslogtreecommitdiff
path: root/rngd.initd
blob: f10b179d8422cecc09eab54ae79f7d767601f798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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} \
${QUIET}"
start_stop_daemon_args="--wait 1000"
retry="SIGKILL/5000"