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"