Browse Source

corrected renice handling

suites/experimental
Ralph Rönnquist 2 years ago
parent
commit
a1c04f2fb2
  1. 5
      rrqnet-ifupdown.sh

5
rrqnet-ifupdown.sh

@ -45,6 +45,8 @@ configure_tap_up() {
start_cable_pre_up() {
configure_tap_up || return 1
configure_tap_bridge || return 1
[ -z "$IF_RRQNET_RENICE" ] || \
RRQDAEMON="/usr/bin/nice -n $IF_RRQNET_RENICE $RRQDAEMON"
if [ -z "$IF_RRQNET_LOG" ] ; then
daemon -U -r -n $NAME -- \
$RRQDAEMON $IF_RRQNET_OPTIONS \
@ -54,9 +56,6 @@ 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

Loading…
Cancel
Save