summaryrefslogblamecommitdiff
path: root/user/iperf3/iperf.initd
blob: a135bafc92febddf0f70ed2ebe8a3320294a31b8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
















                                                                          
#!/sbin/openrc-run

command="/usr/bin/iperf"
pidfile="/var/run/$SVCNAME/$SVCNAME.pid"

depend() {
	need net
	after firewall
}

start() {
	ebegin "Starting $SVCNAME"
	start-stop-daemon --start --make-pid --user ${exec_user:-nobody} \
		--pidfile ${pidfile} --background --exec $command \
		-- --server ${command_args}
	eend
}