Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 May 1998 10:42:01 +0300
From:      Ruslan Ermilov <ru@ucb.crimea.ua>
To:        questions@FreeBSD.ORG
Subject:   Re: Inetd: bug or expected behaviour
Message-ID:  <19980519104201.A21253@ucb.crimea.ua>
In-Reply-To: <Pine.BSF.3.96.980518154809.9951M-100000@gdi.uoregon.edu>; from Doug White on Mon, May 18, 1998 at 03:49:20PM -0700
References:  <19980518172333.A14723@ucb.crimea.ua> <Pine.BSF.3.96.980518154809.9951M-100000@gdi.uoregon.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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