Browse Source

adding renice IFACE option

suites/experimental
Ralph Rönnquist 1 year ago
parent
commit
d5181617c2
  1. 4
      rrqnet-ifupdown.sh
  2. 5
      rrqnet-ifupdown.sh.8.adoc

4
rrqnet-ifupdown.sh

@ -19,6 +19,7 @@
# An rrqnet stanza may have the following settings:
# rrqnet_port <port>
# rrqnet_renice <nice>
# rrqnet_remote <remote declaration>
# rrqnet_options <options>
# rrqnet_log <level> <pathname>
@ -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

5
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.

Loading…
Cancel
Save