From owner-freebsd-questions Sun Feb 28 16:41:52 1999 Delivered-To: freebsd-questions@freebsd.org Received: from icicle.winternet.com (icicle.winternet.com [198.174.169.13]) by hub.freebsd.org (Postfix) with ESMTP id B9C19153D6 for ; Sun, 28 Feb 1999 16:41:36 -0800 (PST) (envelope-from nrahlstr@mail.winternet.com) Received: (from adm@localhost) by icicle.winternet.com (8.8.8/8.8.8) id SAA23788; Sun, 28 Feb 1999 18:41:15 -0600 (CST) Received: from tundra.winternet.com(198.174.169.11) by icicle.winternet.com via smap (V2.0) id xma023775; Sun, 28 Feb 99 18:41:11 -0600 Received: (from nrahlstr@localhost) by tundra.winternet.com (8.8.7/8.8.4) id SAA12573; Sun, 28 Feb 1999 18:41:37 -0600 (CST) Message-ID: <19990228184136.B12098@winternet.com> Date: Sun, 28 Feb 1999 18:41:36 -0600 From: Nathan Ahlstrom To: Kai.Grossjohann@CS.Uni-Dortmund.DE, freebsd-questions@FreeBSD.ORG Subject: Re: Restarting daemon started from /etc/rc*? References: <86btiem6yo.fsf@slowfox.frob.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <86btiem6yo.fsf@slowfox.frob.org>; from Kai.Grossjohann@CS.Uni-Dortmund.DE on Mon, Mar 01, 1999 at 12:41:51AM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kai.Grossjohann@CS.Uni-Dortmund.DE wrote: > I think one thing which is nice about SysVile is the fact that one can > easily start and stop daemons which are usually run at system startup. > Suppose the foo daemon has died for some reason, then I just do "cd > /etc/init.d ; ./foo stop ; ./foo start" to restart it. > > There seems to be no similar mechanism for FreeBSD. Many daemons do > useful things when sent a HUP signal, but suppose the process has > disappeared for some reason? > > I was bitten by this when playing around with my isdnd configuration. > I was almost happy when I discovered that isdnd will reread its config > file when sent a SIGHUP, but then I made a little typo in isdnd.rc and > the SIGHUP made isdnd disappear :-( > > There seems to be no simple way to start isdnd with the right > parameters once it has disappeared. > > Have I overlooked something, or have I found an area which could be > improved on in FreeBSD? Yes, you have found an area which could be improved. See http://www.freebsd.org/~eivind/newrc.html Nathan -- Nathan Ahlstrom nrahlstr@winternet.com http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message