aboutsummaryrefslogtreecommitdiffstats
path: root/community/rng-tools/rngd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/rng-tools/rngd.initd')
-rw-r--r--community/rng-tools/rngd.initd14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/rng-tools/rngd.initd b/community/rng-tools/rngd.initd
new file mode 100644
index 0000000000..b91412ddf8
--- /dev/null
+++ b/community/rng-tools/rngd.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+
+name="rngd"
+command="/usr/sbin/${name}"
+command_args="-f ${RNGD_OPTS}"
+command_background="yes"
+start_stop_daemon_args="--wait 5"
+pidfile="/var/run/${name}.pid"
+
+depend() {
+ need localmount
+ after urandom
+ provide entropy
+}