Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - phrelay seems only to work when started from inetd but not when invoked directly: (3 Items)
   
phrelay seems only to work when started from inetd but not when invoked directly  
I'm unsure that this is the right forum to post, but I have not found anything better.

The documentation of phrelay

http://www.qnx.org/developers/docs/6.3.2/neutrino/utilities/p/phrelay.html

clearly states that inetd must be used to start phrelay in the case where TPC/IP is used. But I am used to have the 
decision to either use inetd or start the service directly. Therefore my first attempts have failed, because I started 
phrelay directly. I was really surprised that phrelay is working exclusively from inetd.

So why is it not possible to start phrelay in daemon mode? Or perhaps is it better to ask, why is it not implemented to 
be started stand alone, e.g. the same way as qconn? 

May I ask you to add an explicit note to the manual page?

Re: phrelay seems only to work when started from inetd but notwhe n invoked directly  
On Tue, 2008-02-26 at 05:16 -0500, Christian Leutloff wrote:
> I was really surprised that phrelay is working exclusively from inetd.

I think the following 2 options are available.  As far as I can tell,
they have been there since 2003 (but not documented - although the use
message will be more detailed in 6.4)

     11   -G         Use this when not run by inetd. Will listen on socket
port 4868.
     12   -g <port>  Same as -G but will listen on <port>.
   
Re: phrelay seems only to work when started from inetd but notwhe  
The option -G does work - but only once. After terminating the first connection the second attempt fails 8-( After 
starting phrelay again, it does work the second time.

The (re)spawning facility of inetd is not simulated with the -G option.