From d5181617c2727b5bb1b07f634253957393850d19 Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Wed, 6 Jan 2021 09:49:19 +1100 Subject: [PATCH] adding renice IFACE option --- rrqnet-ifupdown.sh | 4 ++++ rrqnet-ifupdown.sh.8.adoc | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/rrqnet-ifupdown.sh b/rrqnet-ifupdown.sh index 25517fa..98d97e7 100755 --- a/rrqnet-ifupdown.sh +++ b/rrqnet-ifupdown.sh @@ -19,6 +19,7 @@ # An rrqnet stanza may have the following settings: # rrqnet_port +# rrqnet_renice # rrqnet_remote # rrqnet_options # rrqnet_log @@ -53,6 +54,9 @@ start_cable_pre_up() { $RRQDAEMON ${IF_RRQNET_LOG%% *} $IF_RRQNET_OPTIONS \ -t $IFACE $IF_RRQNET_PORT $IF_RRQNET_REMOTE fi + CHPID="$(cat /var/run/$NAME)" + [ -z "$RRQNET_RENICE" ] || [ -z "$CHPID" ] || \ + renice -n "$RRQNET_RENICE" "$CHPID" } #function diff --git a/rrqnet-ifupdown.sh.8.adoc b/rrqnet-ifupdown.sh.8.adoc index 8fe6f98..39fc4d0 100644 --- a/rrqnet-ifupdown.sh.8.adoc +++ b/rrqnet-ifupdown.sh.8.adoc @@ -45,6 +45,11 @@ This IFACE option is required both as way of marking that the stanza is for an +rrqnet+ virtual cable +tap+, and to declare which UDP port the +rrqnet+ daemon should listen on for incoming cabling. +*rrqnet_renice* _nice_:: + +This IFACE option is used for adjusting the +rrqnet+ process +scheduling priority. Refer the +renice+ man page for full details. + *rrqnet_remote* _remote_:: This IFACE option is used for declaring the remote connection details. -- 2.39.2