aboutsummaryrefslogtreecommitdiffstats
path: root/community/rng-tools/rngd.initd
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-05-20 21:10:06 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-05-20 21:05:31 +0200
commit20527e6d836ea650e1501d7d1fb02ca943b972f2 (patch)
tree37f4035e98fa2dd5e99c695d65f9b321e0f7392f /community/rng-tools/rngd.initd
parentb6b34d216eee16327877194ef19ef9ab61123ae9 (diff)
downloadaports-20527e6d836ea650e1501d7d1fb02ca943b972f2.tar.gz
aports-20527e6d836ea650e1501d7d1fb02ca943b972f2.tar.bz2
aports-20527e6d836ea650e1501d7d1fb02ca943b972f2.tar.xz
community/rng-tools: fix and improve init script
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
}