projects
/
rrq
/
rrqnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
corrected renice handling
[rrq/rrqnet.git]
/
rrqnet-ifupdown.sh
diff --git
a/rrqnet-ifupdown.sh
b/rrqnet-ifupdown.sh
index cdfd3b46a21e0daf4de02b75323cee913d5ed485..27896958f73dea18653436f14e6aec52a31bc9e2 100755
(executable)
--- a/
rrqnet-ifupdown.sh
+++ b/
rrqnet-ifupdown.sh
@@
-19,6
+19,7
@@
# An rrqnet stanza may have the following settings:
# rrqnet_port <port>
# 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>
# rrqnet_remote <remote declaration>
# rrqnet_options <options>
# rrqnet_log <level> <pathname>
@@
-44,10
+45,12
@@
configure_tap_up() {
start_cable_pre_up() {
configure_tap_up || return 1
configure_tap_bridge || return 1
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 \
if [ -z "$IF_RRQNET_LOG" ] ; then
daemon -U -r -n $NAME -- \
$RRQDAEMON $IF_RRQNET_OPTIONS \
- -t $IFACE $IF_RRQNET $IF_RRQNET_REMOTE
+ -t $IFACE $IF_RRQNET
_PORT
$IF_RRQNET_REMOTE
else
daemon -U -r -n $NAME -E "${IF_RRQNET_LOG#* }" -- \
$RRQDAEMON ${IF_RRQNET_LOG%% *} $IF_RRQNET_OPTIONS \
else
daemon -U -r -n $NAME -E "${IF_RRQNET_LOG#* }" -- \
$RRQDAEMON ${IF_RRQNET_LOG%% *} $IF_RRQNET_OPTIONS \