From 0223d4efd3a0f09821fa5a524d57f09fb980f1f3 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Wed, 20 Feb 2019 15:23:30 -0800 Subject: Initial commit --- rngd.initd | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 rngd.initd (limited to 'rngd.initd') 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" -- cgit v1.2.1