diff options
Diffstat (limited to 'iperf3/iperf3-log/run')
-rw-r--r-- | iperf3/iperf3-log/run | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/iperf3/iperf3-log/run b/iperf3/iperf3-log/run new file mode 100644 index 0000000..640b1ab --- /dev/null +++ b/iperf3/iperf3-log/run @@ -0,0 +1,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 |