Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Apr 2002 16:11:32 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Daniel Blankensteiner <db@traceroute.dk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: booting and inetd
Message-ID:  <20020414141130.GA21469@student.uu.se>
In-Reply-To: <000b01c1e3b2$40db6b10$6800a8c0@rafter>
References:  <000b01c1e3b2$40db6b10$6800a8c0@rafter>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 14, 2002 at 02:45:27PM +0200, Daniel Blankensteiner wrote:
> Hi again
> 
> Still using FreeBSD 4.4 on a i386 :-)
> 
> When FreeBSD boots it read scripts and other files from:
> /usr/local/etc/rc.d (all *.sh files)
> /etc/rc (and all rc.* files)
> /boot
> right? are there more?
> 
> So a service like sendmail or sshd can be started at boot time by any of
> these files, but when you killall -HUP inetd. Then you close all services
> and only start them listed (not #'ed) in /etc/inetd.conf?
> But when I restart inetd, nothing happens, all services are still running?
> (and I have #'ed all services in /etc/inetd.conf).

You seem to have misunderstood how inetd works.
/etc/inetd.conf determines what ports inetd will listen on.
When there is an incoming connection on one of the ports inetd listens
on it will start a new process to handle that connection.
Inetd does not start any processes at boot time, but only when there is
an incoming connection.


Some services are not handled by inetd but instead by their own daemons
who listen for incoming connections themselves.
Sshd is one such program, and I believe sendmail is another.
These are not affected by any changes you make to /etc/inetd.conf

These daemons are usually started through one of the rc* files.
(Startup behaviour is normally determined by a xxx_enable variable in
/etc/rc.conf for daemons that are part of the base system, or by a
script in /usr/local/etc/rc.d for programs installed through
ports/packages.)


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020414141130.GA21469>