aboutsummaryrefslogblamecommitdiff
path: root/iperf3/iperf3-log/run
blob: 640b1ab40d2f36cd9e3af29d5dd93a9363f83eaa (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                 
#!/bin/execlineb -P
envfile /etc/s6/config/iperf3.conf
importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
	foreground { install -d -o s6log -g s6log /var/log/iperf3 }
	s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/iperf3
}
foreground { install -d -o s6log -g s6log /run/log/iperf3 }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/iperf3