projects
/
rrq
/
rrqnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spelling
[rrq/rrqnet.git]
/
rrqnet-ifupdown.sh
diff --git
a/rrqnet-ifupdown.sh
b/rrqnet-ifupdown.sh
index 98d97e72c9d27e54d6d256d15eb8b2dc78b5fc1c..336c46d4980b021ae8106fb0d46e15090b7e9984 100755
(executable)
--- a/
rrqnet-ifupdown.sh
+++ b/
rrqnet-ifupdown.sh
@@
-19,7
+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_
re
nice <nice>
+# rrqnet_nice <nice>
# rrqnet_remote <remote declaration>
# rrqnet_options <options>
# rrqnet_log <level> <pathname>
# rrqnet_remote <remote declaration>
# rrqnet_options <options>
# rrqnet_log <level> <pathname>
@@
-45,6
+45,8
@@
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_NICE" ] || \
+ RRQDAEMON="/usr/bin/nice -n $IF_RRQNET_NICE $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 \
@@
-54,9
+56,6
@@
start_cable_pre_up() {
$RRQDAEMON ${IF_RRQNET_LOG%% *} $IF_RRQNET_OPTIONS \
-t $IFACE $IF_RRQNET_PORT $IF_RRQNET_REMOTE
fi
$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
}
#function