From e468449160d3df9165c159848186396234ad02c3 Mon Sep 17 00:00:00 2001 From: Lucian Balaceanu Date: Tue, 26 Jul 2016 16:47:18 +0200 Subject: [PATCH] Make --log-stderr available from ngcp-rtpengine-daemon.init --- debian/ngcp-rtpengine-daemon.default | 1 + debian/ngcp-rtpengine-daemon.init | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/debian/ngcp-rtpengine-daemon.default b/debian/ngcp-rtpengine-daemon.default index 8f5f50adc..3d2f084a3 100644 --- a/debian/ngcp-rtpengine-daemon.default +++ b/debian/ngcp-rtpengine-daemon.default @@ -40,3 +40,4 @@ TABLE=0 # HOMER_PROTOCOL=udp # HOMER_ID=2001 # RECORDING_DIR=/var/spool/rtpengine/ +# LOG_STDERR="no" diff --git a/debian/ngcp-rtpengine-daemon.init b/debian/ngcp-rtpengine-daemon.init index 1ff1a1f8c..f71fc3578 100755 --- a/debian/ngcp-rtpengine-daemon.init +++ b/debian/ngcp-rtpengine-daemon.init @@ -55,6 +55,7 @@ if [ ! -z "$SUBSCRIBE_KEYSPACES" ]; then OPTIONS="$OPTIONS --subscribe-keyspace=$ks" done fi + [ -z "$ADDRESS" ] || OPTIONS="$OPTIONS --interface=$ADDRESS" [ -z "$ADV_ADDRESS" ] || OPTIONS="$OPTIONS!$ADV_ADDRESS" [ -z "$ADDRESS_IPV6" ] || OPTIONS="$OPTIONS --interface=$ADDRESS_IPV6" @@ -99,6 +100,10 @@ if test "$FORK" = "no" ; then OPTIONS="$OPTIONS --foreground" fi +if test "$LOG_STDERR" = "yes" ; then + OPTIONS="$OPTIONS --log-stderr" +fi + if [ -x /usr/sbin/ngcp-virt-identify ]; then if /usr/sbin/ngcp-virt-identify --type container; then VIRT="yes"