From 12a59caaf8fa5a8f0e9a893120428f5a4420c394 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 10 Jun 2011 17:48:45 +0000 Subject: [PATCH] add redis config to mediaproxy init scripts --- debian/ngcp-mediaproxy-ng-daemon.default | 2 ++ debian/ngcp-mediaproxy-ng-daemon.init | 2 ++ 2 files changed, 4 insertions(+) diff --git a/debian/ngcp-mediaproxy-ng-daemon.default b/debian/ngcp-mediaproxy-ng-daemon.default index 01ffc181f..c6ef885d9 100644 --- a/debian/ngcp-mediaproxy-ng-daemon.default +++ b/debian/ngcp-mediaproxy-ng-daemon.default @@ -11,3 +11,5 @@ FORK=yes TABLE=0 # PORT_MIN=30000 # PORT_MAX=50000 +# REDIS=127.0.0.1:6379 +# REDIS_DB=1 diff --git a/debian/ngcp-mediaproxy-ng-daemon.init b/debian/ngcp-mediaproxy-ng-daemon.init index ae28a939b..415512d1a 100755 --- a/debian/ngcp-mediaproxy-ng-daemon.init +++ b/debian/ngcp-mediaproxy-ng-daemon.init @@ -53,6 +53,8 @@ OPTIONS="" [ -z "$PORT_MIN" ] || OPTIONS="$OPTIONS --port-min=$PORT_MIN" [ -z "$PORT_MAX" ] || OPTIONS="$OPTIONS --port-max=$PORT_MAX" [ -z "$ADV_ADDRESS" ] || OPTIONS="$OPTIONS --advertised-ip=$ADV_ADDRESS" +[ -z "$REDIS" ] || OPTIONS="$OPTIONS --redis=$REDIS" +[ -z "$REDIS_DB" ] || OPTIONS="$OPTIONS --redis-db=$REDIS_DB" OPTIONS="$OPTIONS --table=$TABLE" if test "$FORK" = "no" ; then OPTIONS="$OPTIONS --foreground"