mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
- Remove unsupported daemon options which cause the daemon failing to start - Use built-in pidfile to properly stop the daemon - Add openrc subpkg
15 lines
286 B
Plaintext
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
|
|
}
|