From owner-freebsd-questions Sun Apr 14 7:11:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailc.telia.com (mailc.telia.com [194.22.190.4]) by hub.freebsd.org (Postfix) with ESMTP id 1C85237B400 for ; Sun, 14 Apr 2002 07:11:49 -0700 (PDT) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailc.telia.com (8.11.6/8.11.6) with ESMTP id g3EEBib28717 for ; Sun, 14 Apr 2002 16:11:44 +0200 (CEST) Received: from falcon.midgard.homeip.net (h53n2fls20o913.telia.com [212.181.163.53]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id QAA09529 for ; Sun, 14 Apr 2002 16:11:37 +0200 (CEST) Received: (qmail 21634 invoked by uid 1001); 14 Apr 2002 14:11:33 -0000 Date: Sun, 14 Apr 2002 16:11:32 +0200 From: Erik Trulsson To: Daniel Blankensteiner Cc: freebsd-questions@freebsd.org Subject: Re: booting and inetd Message-ID: <20020414141130.GA21469@student.uu.se> Mail-Followup-To: Daniel Blankensteiner , freebsd-questions@freebsd.org References: <000b01c1e3b2$40db6b10$6800a8c0@rafter> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000b01c1e3b2$40db6b10$6800a8c0@rafter> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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.) -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message