Subject Re: [firebird-support] Starting ibserver with inetd on Linux
Author Helen Borrie
At 12:23 PM 29/02/2004 +0100, you wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hi,
>
>I have trouble to start ibserver over inetd... I added this to
>inetd.conf:
>gds_db stream tcp nowait.30000 firebird/opt/interbase/bin/ibserver
>
>When I try to connect to a fb database, I get
>Unable to complete network request to host "localhost".
>- -Failed to establish a connection etc
>
>But strangely inetd *is* starting an ibserver process as us can see:
>firebird 1568 0.0 0.1 3844 828 ? S 12:12 0:00 [ibserver]
>
>But this process somehow is not accepting connections. Also it seems
>that this process is being created over and over again for every
>connection I make.
>
>When I do su - firebird; /opt/interbase/bin/ibserver& I have it up and
>running and I can connect to it.
>
>Can anybody give a hint?
>
>Googleing showed that with Interbase people seem to call a script(?)
>called "gds_inet_server" via inetd instead of calling ibserver
>directly... If that's the solution for FB, where can I get this script?
>
>best regards,
>Yves
>
>
>p.s. This is on 1.03, but I will migrate to 1.5 soon, still using inetd

ibserver isn't designed to use inetd!! It is the Superserver version - it
is a daemon in its own right and has to be running to accept
connections. It starts several new ibserver threads for each connection.

The Classic version uses inetd (well, mostly xinetd these days). The
gds_inet_server is the executable that [x]inetd starts up for the client
when it gets a connection request from the client. [x]inetd starts one
server process for each attachment.

[x]inetd needs to have the firebird script in its [x]inetd.d directory.

/heLen