Hi, /etc/init.d/rtpproxy has these lines:
------------------
MYNAME=`basename $0`
MYCFG="/etc/default/${MYNAME}"
-------------------
When the system starts the /etc/default/rtpproxy file is NOT loaded.
I've discovered the bug by adding the following the following line:
------------------
MYNAME=`basename $0`
MYCFG="/etc/default/${MYNAME}"
echo "$(date): MYNAME = ${MYNAME}" >> /root/rtpproxy.init.log
-------------------
I've restarted the system and this is the content of /root/rtpproxy.init.log:
Fri Jul 17 13:43:37 CEST 2009: MYNAME = K20rtpproxy
Fri Jul 17 13:46:09 CEST 2009: MYNAME = S20rtpproxy
If later I restart manually by typing "/etc/init.d/rtpproxy restart" then I see:
vie jul 17 13:42:57 CEST 2009: MYNAME = rtpproxy
vie jul 17 13:43:09 CEST 2009: MYNAME = rtpproxy
The issue occurs due to tha fact that init scripts are executed by
init process calling the *links* in /etc/rc2.d !!!
So I propose to change the current code:
------------------
MYNAME=`basename $0`
MYCFG="/etc/default/${MYNAME}"
-------------------
by:
------------------
MYCFG="/etc/default/${NAME}"
-------------------
--
Iñaki Baz Castillo
<[email protected]>
_______________________________________________
Devel mailing list
[email protected]
http://lists.rtpproxy.org/mailman/listinfo/devel