On Fri, 24 Sep 2010 11:20:54 +0200
Sebastian Rose <[email protected]> wrote:

> Robert Toth <[email protected]> writes:
> > 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.
> 
> 
> You as root are in charge to either assign another port or disable the
> other daemon listening on port 80 (apache probably).
> 
> As both are http servers, using port 80 is the natural thing to do.

Looks like you did not understand the problem. He did not complain that
the script checks for a port that is already in use. The problem is
that the script checks for a port that the tntnet server is probably
not even using (the script assumes that tntnet will use port 80, and
that is wrong).

As far as I see it this check:
> if netstat -ln --tcp | grep -c ':80 ' > /dev/null ; then
>         echo "failed, socket in use."
is unnecessary. start-stop-daemon should be left to try to start the
service, if it fails (because port is already in use or any other
reason) it should return status FAILED, and then the admin can check
the log and see what the problem was and fix it.

Regards,
mihai

------------------------------------------------------------------------------
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