added log level handling to debian default file and init script

- fixed indentation in main.c
git.mgm/mediaproxy-ng/origin/mr3.2
Juha Heinanen 12 years ago
parent d74c24ff21
commit e84c2f52c3

@ -18,3 +18,4 @@ TABLE=0
# REDIS=127.0.0.1:6379 # REDIS=127.0.0.1:6379
# REDIS_DB=1 # REDIS_DB=1
# B2B_URL=http://127.0.0.1:8090/ # B2B_URL=http://127.0.0.1:8090/
# LOG_LEVEL=6

@ -61,6 +61,7 @@ OPTIONS=""
[ -z "$B2B_URL" ] || OPTIONS="$OPTIONS --b2b-url=$B2B_URL" [ -z "$B2B_URL" ] || OPTIONS="$OPTIONS --b2b-url=$B2B_URL"
[ -z "$NO_FALLBACK" -o \( "$NO_FALLBACK" != "1" -a "$NO_FALLBACK" != "yes" \) ] || OPTIONS="$OPTIONS --no-fallback" [ -z "$NO_FALLBACK" -o \( "$NO_FALLBACK" != "1" -a "$NO_FALLBACK" != "yes" \) ] || OPTIONS="$OPTIONS --no-fallback"
OPTIONS="$OPTIONS --table=$TABLE" OPTIONS="$OPTIONS --table=$TABLE"
[ -z "$LOG_LEVEL" ] || OPTIONS="$OPTIONS --log-level=$LOG_LEVEL"
if test "$FORK" = "no" ; then if test "$FORK" = "no" ; then
OPTIONS="$OPTIONS --foreground" OPTIONS="$OPTIONS --foreground"
fi fi

Loading…
Cancel
Save