example of innd running from xinetd

Bill Tangren bjt at aa.usno.navy.mil
Mon Sep 27 20:08:40 UTC 2004


Bill Tangren wrote:
> Hello,
> 
> I have installed 2.4.1 from sources on a RHEL ES version 3 system, using 
> the --with-openssl option. I would like to have an example the use of 
> innd with ssl and xinetd. I thought of copying the /etc/rc.d/init.d/innd 
> script, but I'm not sure how to modify it (except to add the -P flag) to 
> get it to run properly. An example would be greatly appreciated. Can 
> someone point me to one? I looked at the install files, and the man 
> pages, but no luck.
> 
> Thanks!
> Bill Tangren
> 

These are some things I've tried:

I created a file called /etc/xinetd.d/nntps

service nntps
{
         socket_type     = stream
         protocol        = tcp
         wait            = no
         user            = news
         disable         = no
         server          = /news/bin/nnrpd
         server_args     = -DS -p563
}

When I restart xinetd, and do a

telnet localhost 563

I get this error message:

nnrpd: can't bind (Permission denied)

I tried to "su -" to news, and issue the

/news/bin/nnrpd -DS -p563

command, and I get the same error, so I tried changing user to root. 
When I do that, and I repeat the above, I get

503 NNTP server unavailable. Try later.

If, as root, I issue this command, I get

/news/bin/nnrpd: can't bind (Address already in use)


I don't know what I am doing wrong. Any pointers would be greatly 
appreciated.

Bill Tangren


More information about the inn-workers mailing list