Hi, On 9/1/10 7:54 PM, Nguyen Quang Tri wrote: > Hello , > I have use Centos 5.2 ,PHP 5.2.12 .CDRTool 7.0 ,I have installed > start-stop-daemon > > when i type /etc/init.d/cdrtool start i have get log > > > Jan 9 19:48:25 cdrtool[1035]: Starting CDRTool Rating Engine... > Jan 9 19:48:25 cdrtool[1035]: Cached 12291 total, 12291 default, 0 > gateway, 0 domain, 0 subscriber destinations > Jan 9 19:48:25 cdrtool[1035]: Updated cache for 0 SIP destinations > Jan 9 19:48:27 cdrtool[1035]: Memory usage: 5.30MB, memory limit: 128MB > Jan 9 19:48:27 cdrtool[1035]: Loaded 1 profiles into memory > Jan 9 19:48:27 cdrtool[1035]: Loaded 0 ratesHistory into memory > Jan 9 19:48:27 cdrtool[1035]: Loaded 0 holidays into memory > Jan 9 19:48:27 cdrtool[1035]: Loaded 1 enumTlds into memory > Jan 9 19:48:27 5 cdrtool[1035]: Memory usage: 5.30MB, memory limit: 128MB > Jan 9 19:48:27 cdrtool[1035]: Rating Engine started sucesfully, going > to background... > > but can not start rating engine > > i have try run > > /usr/local/apache/htdocs/CDRTool/scripts/ratingEngine.php > > same like that. > Pls help me fix it > Thank you. >
That's because the init script provided is for a Debian based GNU/Linux distributions. Look at the first lines of the init file: CDRTOOL_PATH=/var/www/CDRTool DAEMON=$CDRTOOL_PATH/scripts/ratingEngine.php As you are running another distribution your installation may be located elsewhere. You may edit those lines to match your script location. We currently develop, test and maintain the software for Debian based distributions, so running it on another distribution may lead you to problems we are not always able to track down and solve as we don't maintain the software for them. Regards, -- Saúl Ibarra Corretgé AG Projects _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
