From owner-freebsd-questions Tue May 19 00:42:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA10848 for freebsd-questions-outgoing; Tue, 19 May 1998 00:42:47 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [194.93.177.113]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA10715 for ; Tue, 19 May 1998 00:42:10 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.8.8/8.8.8) id KAA21307; Tue, 19 May 1998 10:42:01 +0300 (EEST) (envelope-from ru) Message-ID: <19980519104201.A21253@ucb.crimea.ua> Date: Tue, 19 May 1998 10:42:01 +0300 From: Ruslan Ermilov To: questions@FreeBSD.ORG Subject: Re: Inetd: bug or expected behaviour Mail-Followup-To: questions@FreeBSD.ORG References: <19980518172333.A14723@ucb.crimea.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91i In-Reply-To: ; from Doug White on Mon, May 18, 1998 at 03:49:20PM -0700 X-Operating-System: FreeBSD 2.2.6-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, May 18, 1998 at 03:49:20PM -0700, Doug White wrote: > On Mon, 18 May 1998, Ruslan Ermilov wrote: > > > Recently I've switched from bootp to isc-dhcp2. > > They both listen on udp port 67, and I had the > > standard entry for bootpd in my inetd.conf: > > > > bootps dgram udp wait root /usr/libexec/bootpd bootpd > > > > When I've finished with DHCP configuration file (dhcpd.conf), > > I (as usually) commented out the string for ``bootpd'' above > > in inetd.conf, killed -HUP inetd, and tried to run dhcpd. > > > > I was unable to run it with the following diagnostic: > > ``Unable to bind, address already in use''. > > > > There was no bootpd process, and even when I killed inetd itself, > > the dhcpd was unable to bind to the 67 port. > > Wait for a little bit or reboot and see if that clears it up. Most likely > bootpd didn't die cleanly (or inetd) so the kernel thinks someone is still > using the port. After a while it'll free the resource. > I've figured out where was my problem. My shell script issued /bin/sleep, which wasn't killed along with its parent. netstat(1) saw me the PCB, fstat(1) saw me the sleep process. Regards, -- Ruslan Ermilov System Administrator ru@ucb.crimea.ua United Commercial Bank +380-652-247647 Simferopol, Crimea 2426679 ICQ Network, UIN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message