blob: 5ec04239a2487cb0615d7843e6a8a5de08de5c77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/sbin/openrc-run
name=rngd
daemon=/usr/sbin/$name
depend() {
need localmount
after urandom
provide entropy
}
start() {
ebegin "Starting ${name}"
start-stop-daemon --start \
--pidfile $pidfile --exec $command -- $command_args
eend $?
}
stop() {
ebegin "Stopping ${name}"
if [ -f $pidfile ]; then
start-stop-daemon --stop --pidfile $pidfile
fi
ewend $?
}
|