Subject: Re: services and inetd.conf
To: synapse <synapse@gim.net>
From: Dave Huang <khym@bga.com>
List: port-mac68k
Date: 04/01/1997 16:37:36
On Tue, 1 Apr 1997, synapse wrote:
> I installed httpd (apache actually) on my system, as well as in.identd. so
> i added these lines in these files:
> in /etc/services:
> 
> httpd     80/tcp     http   # WorldWideWeb HTTP
> httpd     80/udp            # HyperText Transfer Protocol
> ident     113/tcp    auth      tap

Hmm... I thought those were already in the /etc/services that comes with
NetBSD...

> in /etc/inetd.conf:
> 
> httpd     stream  tcp   nowait   root   /usr/local/bin/httpd    httpd
> ident     stream  tcp   nowait   root   /usr/local/sbin/in.identd in.identd

I dunno about identd... I use the the following line in my inetd.conf:

ident          stream  tcp     wait    nobody.kmem /usr/libexec/identd identd -w -t60 -l -o -e -N#

Perhaps the wait/nowait thing makes a difference? The inetd.conf manpage
says that tcp services shouldn't use wait though, but the above is from
the inetd.conf that comes with NetBSD, and it seems to work :)

As for the httpd, you probably shouldn't start it from inetd; start it
from rc.local instead. However, if you really want to start it from inetd,
you'll have to put "ServerType inetd" into Apache's httpd.conf file. 

Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 21 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++