From 1544ca00bbbd39bfae3a43b484f5c5c67e0549e4 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 7 Dec 2022 06:55:27 +0530 Subject: iperf3: add s6 service --- iperf3/iperf3-log/run | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 iperf3/iperf3-log/run (limited to 'iperf3/iperf3-log/run') 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 -- cgit v1.2.3