add NUM_THREADS to init scripts

changes/56/8856/1
Richard Fuchs 11 years ago
parent 07b6ea4030
commit a5c55fc398

@ -20,3 +20,4 @@ TABLE=0
# B2B_URL=http://127.0.0.1:8090/
# LOG_LEVEL=6
# LOG_FACILITY=daemon
# NUM_THREADS=5

@ -63,6 +63,7 @@ OPTIONS=""
OPTIONS="$OPTIONS --table=$TABLE"
[ -z "$LOG_LEVEL" ] || OPTIONS="$OPTIONS --log-level=$LOG_LEVEL"
[ -z "$LOG_FACILITY" ] || OPTIONS="$OPTIONS --log-facility=$LOG_FACILITY"
[ -z "$NUM_THREADS" ] || OPTIONS="$OPTIONS --num-threads=$NUM_THREADS"
if test "$FORK" = "no" ; then
OPTIONS="$OPTIONS --foreground"
fi

@ -141,6 +141,11 @@ build_opts() {
then
OPTS+=" --log-facility=$LOG_FACILITY"
fi
if [[ -n "$NUM_THREADS" ]]
then
OPTS+=" --num-threads=$NUM_THREADS"
fi
}
start() {

@ -34,6 +34,7 @@ LISTEN_UDP=127.0.0.1:2222 # IP address and port combination for UDP
#
#LOG_LEVEL=6 # Log level to use
#LOG_FACILITY=daemon # Syslog facility to use
#NUM_THREADS=5 # How many worker threads to launch
# The following items are for use with NGCP
#REDIS=127.0.0.1:6379

Loading…
Cancel
Save