From: Ralph Ronnquist Date: Tue, 5 Jan 2021 22:49:19 +0000 (+1100) Subject: adding renice IFACE option X-Git-Tag: 0.3.2~4 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;ds=sidebyside;h=d5181617c2727b5bb1b07f634253957393850d19;p=rrq%2Frrqnet.git adding renice IFACE option --- 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.