diff options
Diffstat (limited to 'iperf3')
-rw-r--r-- | iperf3/iperf3-log/consumer-for | 1 | ||||
-rw-r--r-- | iperf3/iperf3-log/notification-fd | 1 | ||||
-rw-r--r-- | iperf3/iperf3-log/pipeline-name | 1 | ||||
-rw-r--r-- | iperf3/iperf3-log/run | 9 | ||||
-rw-r--r-- | iperf3/iperf3-log/type | 1 | ||||
-rw-r--r-- | iperf3/iperf3-srv/producer-for | 1 | ||||
-rw-r--r-- | iperf3/iperf3-srv/run | 5 | ||||
-rw-r--r-- | iperf3/iperf3-srv/type | 1 | ||||
-rw-r--r-- | iperf3/iperf3.conf | 5 |
9 files changed, 25 insertions, 0 deletions
diff --git a/iperf3/iperf3-log/consumer-for b/iperf3/iperf3-log/consumer-for new file mode 100644 index 0000000..4f46c32 --- /dev/null +++ b/iperf3/iperf3-log/consumer-for @@ -0,0 +1 @@ +iperf3-srv diff --git a/iperf3/iperf3-log/notification-fd b/iperf3/iperf3-log/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/iperf3/iperf3-log/notification-fd @@ -0,0 +1 @@ +3 diff --git a/iperf3/iperf3-log/pipeline-name b/iperf3/iperf3-log/pipeline-name new file mode 100644 index 0000000..ccf60a7 --- /dev/null +++ b/iperf3/iperf3-log/pipeline-name @@ -0,0 +1 @@ +iperf3 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 diff --git a/iperf3/iperf3-log/type b/iperf3/iperf3-log/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/iperf3/iperf3-log/type @@ -0,0 +1 @@ +longrun diff --git a/iperf3/iperf3-srv/producer-for b/iperf3/iperf3-srv/producer-for new file mode 100644 index 0000000..057824b --- /dev/null +++ b/iperf3/iperf3-srv/producer-for @@ -0,0 +1 @@ +iperf3-log 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} diff --git a/iperf3/iperf3-srv/type b/iperf3/iperf3-srv/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/iperf3/iperf3-srv/type @@ -0,0 +1 @@ +longrun diff --git a/iperf3/iperf3.conf b/iperf3/iperf3.conf new file mode 100644 index 0000000..7e37ed7 --- /dev/null +++ b/iperf3/iperf3.conf @@ -0,0 +1,5 @@ +# Optional arguments for monero +OPTS="--config-file=/etc/monerod.conf" + +# This configures the directives used for s6-log in the log service. +DIRECTIVES="n3 s2000000 T" |