From owner-freebsd-stable Fri Jul 7 15:52:35 2000 Delivered-To: freebsd-stable@freebsd.org Received: from turtle.looksharp.net (cc360882-a.strhg1.mi.home.com [24.2.221.22]) by hub.freebsd.org (Postfix) with ESMTP id A111937BC3A for ; Fri, 7 Jul 2000 15:52:24 -0700 (PDT) (envelope-from bandix@looksharp.net) Received: from localhost (bandix@localhost) by turtle.looksharp.net (8.9.3/8.9.3) with ESMTP id SAA10767; Fri, 7 Jul 2000 18:51:01 -0400 (EDT) (envelope-from bandix@looksharp.net) Date: Fri, 7 Jul 2000 18:51:01 -0400 (EDT) From: "Brandon D. Valentine" To: Marcin Cieslak Cc: Gerhard Sittig , freebsd-stable@FreeBSD.ORG Subject: Re: HEADS UP: /etc/rc.shutdown calls local scripts now In-Reply-To: <20000707190315.A15083@tricord.system.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 7 Jul 2000, Marcin Cieslak wrote: >One just uses "startsrc -s sendmail" or "stopsrc -s sendmail" to kick >it up or down. SRC may remember which command-line arguments are to be >supplied to command - in sendmail's case be it "-bd -q1h". > >What's even more funny, they went even deeper to support >inetd, where inetd services, called "subservers", may be >interactively started/stopped using "start/stopsrc -t tftp" syntax. >It even comments out the relevant /etc/inetd.conf line! > >Of course "lssrc" command shows the current status of all >subservers/subsystems showing even PID's. > >However, personally I prefer the usual FreeBSD rc.conf way.... One could leave the current init system alone and write a set of perl scripts to read a configuration file and start and stop daemons according to what the config file says. Essentially exhibiting the behavior of your start/stopsrc commands but using simple perl parsing and exec'ing. You could probably even do it in Bourne shell if you were very clean about it, but I would prefer to parse the conf file in perl myself. This would be a much better idea than SYSV-afying our init. Brandon D. Valentine -- bandix at looksharp.net | bandix at structbio.vanderbilt.edu "Truth suffers from too much analysis." -- Ancient Fremen Saying To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message