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.initd16
1 files changed, 9 insertions, 7 deletions
diff --git a/community/rng-tools/rngd.initd b/community/rng-tools/rngd.initd
index b91412ddf8..07805ca356 100644
--- a/community/rng-tools/rngd.initd
+++ b/community/rng-tools/rngd.initd
@@ -1,14 +1,16 @@
#!/sbin/openrc-run
-name="rngd"
-command="/usr/sbin/${name}"
-command_args="-f ${RNGD_OPTS}"
+description="Random number generator daemon"
+
+command="/usr/sbin/rngd"
+command_args="-f ${command_args:-$RNGD_OPTS}"
command_background="yes"
+
start_stop_daemon_args="--wait 5"
-pidfile="/var/run/${name}.pid"
+pidfile="/run/$RC_SVCNAME.pid"
depend() {
- need localmount
- after urandom
- provide entropy
+ need localmount
+ after urandom
+ provide entropy
}