aboutsummaryrefslogtreecommitdiff
path: root/iperf3/iperf3-srv/run
diff options
context:
space:
mode:
authorsinanmohd <pcmsinan@gmail.com>2022-12-07 06:55:27 +0530
committersinanmohd <pcmsinan@gmail.com>2022-12-07 06:55:27 +0530
commit1544ca00bbbd39bfae3a43b484f5c5c67e0549e4 (patch)
treee6724fc41749b32de2b0a46bbc3c0cc199db6f29 /iperf3/iperf3-srv/run
parentdb9b6035912f2618a18f3fef45b99e2a0f6f0b00 (diff)
iperf3: add s6 service
Diffstat (limited to 'iperf3/iperf3-srv/run')
-rw-r--r--iperf3/iperf3-srv/run5
1 files changed, 5 insertions, 0 deletions
diff --git a/iperf3/iperf3-srv/run b/iperf3/iperf3-srv/run
new file mode 100644
index 0000000..7beea43
--- /dev/null
+++ b/iperf3/iperf3-srv/run
@@ -0,0 +1,5 @@
+#!/bin/execlineb -P
+envfile /etc/s6/config/iperf3.conf
+importas -sCuD "" OPTS OPTS
+fdmove -c 2 1
+s6-setuidgid iperf3 exec /usr/bin/iperf3 --server ${OPTS}