File: infnoise.openrc

package info (click to toggle)
infnoise 0.3.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 27,304 kB
  • sloc: ansic: 2,177; sh: 251; python: 146; makefile: 65
file content (22 lines) | stat: -rwxr-xr-x 355 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/openrc-run

PIDFILE=/run/infnoise.pid

depend() {
	need udev-settle localmount
	provide trng	# Support need/use trng in other scripts
}

start() {
	ebegin "Starting infnoise"
	/usr/local/sbin/infnoise --dev-random --daemon --pidfile $PIDFILE
	eend $?
}

stop() {
	ebegin "Stopping infnoise"
	kill `cat $PIDFILE`
	RC=$?
	rm -f $PIDFILE
	eend $RC
}