[OpenSIPS-Users] ERROR:core:main: loading config file

Kwabena Ivan.nyarko at gmail.com
Wed Aug 7 15:41:59 CEST 2013


Hello Vlad,
thanks for your reply. I figured out what was going wrong and solved my
problem and I planned commenting on it. Anyway how about considering this
solution so that things get even more easier for beginners like myself:
 Adding a variable like  CONFIG_FILE which would be defined at the top of
the script and referenced later. In my case ....
.
.
CONFIG_FILE=/usr/local/opensips_proxy/etc/opensips/opensips_residential.cfg
.
.
check_opensips_config ()
{
        # Check if opensips configuration is valid before starting the
server
        set +e
        out=$($DAEMON -c $CONFIG_FILE 2>&1 > /dev/null)
        .....
}
.
.
.
OPTIONS="-P $PIDFILE -m $S_MEMORY -M $P_MEMORY -u $USER -g $GROUP -f
$CONFIG_FILE"
.
.
.

I know this is definitely trivial for most people but it may help someone
(some day) :-)

Thanks again,

Kwabena





--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/ERROR-core-main-loading-config-file-tp7587349p7587422.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list