From owner-freebsd-stable Fri Jul 7 10: 3:33 2000 Delivered-To: freebsd-stable@freebsd.org Received: from tricord.system.pl (tricord.system.pl [195.205.185.10]) by hub.freebsd.org (Postfix) with ESMTP id 2624037C1A3 for ; Fri, 7 Jul 2000 10:03:23 -0700 (PDT) (envelope-from saper@tricord.system.pl) Received: (from saper@localhost) by tricord.system.pl (SYSTEM Internet) id TAA18199; Fri, 7 Jul 2000 19:03:16 +0200 (MET DST) Date: Fri, 7 Jul 2000 19:03:15 +0200 From: Marcin Cieslak To: Gerhard Sittig Cc: freebsd-stable@FreeBSD.ORG Subject: Re: HEADS UP: /etc/rc.shutdown calls local scripts now Message-ID: <20000707190315.A15083@tricord.system.pl> Mail-Followup-To: Gerhard Sittig , freebsd-stable@FreeBSD.ORG References: <20000706102309.D20588@dan.emsphone.com> <20000706223057.I5945@speedy.gsinet> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0.1i In-Reply-To: <20000706223057.I5945@speedy.gsinet>; from Gerhard.Sittig@gmx.net on Thu, Jul 06, 2000 at 10:30:57PM +0200 Organization: SYSTEM Internet Provider - http://www.system.pl/ Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gerhard Sittig (Gerhard.Sittig@gmx.net) napisał(a): > Regarding the 'stop' sequence I feel this to be no pain either. > What's the difference between simply TERMing all processes and > shutting down a service by a script knowing the daemon and > environment better than kill? There is always one more way to do it(TM). IBM ported to AIX something resembling good ol' mainframes and it's called System Resource Controller. Most daemons are linked with special SRC library (they did it even with sendmail) which allows some communication with a daemon: the simplest form is the signal communication (plain kill(2)), but more sophisticated control is achieved with the use of pipes - SRC controller queries the process (or "subsystem" in IBM lingo) if it's running and active. 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.... -- << Marcin Cieslak // saper@system.pl >> ----------------------------------------------------------------- SYSTEM Internet Provider http://www.system.pl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message