Leonardo Arena bb42feea4a community/rng-tools$: upgrade to 6.6
- Remove unsupported daemon options which cause the daemon failing to start
- Use built-in pidfile to properly stop the daemon
- Add openrc subpkg
2019-01-17 10:54:07 +00:00

15 lines
286 B
Plaintext

#!/sbin/openrc-run
description="Random number generator daemon"
pidfile="/run/$RC_SVCNAME.pid"
command="/usr/sbin/rngd"
command_args="--quiet --background --pid-file $pidfile $RNGD_OPTS"
start_stop_daemon_args="--wait 5"
depend() {
need localmount
after urandom
provide entropy
}