Tommi:

I'm running Debian 5 (Lenny) with tntnet. There's a bug in the init.d
script for starting up the tntnet daemon. As shown below, the script
fails to load tntnet whenever port 80 is in use by another process.


> case "$1" in
>   start)
>     echo -n "Starting $DESC: "
>     if netstat -ln --tcp | grep -c ':80 ' > /dev/null ; then
>         echo "failed, socket in use."
>     else
>         start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid
> --exec $DAEMON -- $DAEMON_OPTS
>         echo "$NAME."
>     fi
>     ;;

The problem shows up when port 80 is in use by another process (Apache2
for example) but tntnet should be able to start up when set to listen on
a different port that is not in use (eg port 8080) as defined in the
tntnet.conf file.

The work-a-round is to always "restart" instead of using "start" as
there's no port 80 check when restarting.

Hope you can resolve this issue soon.

Thanks

Robert


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to