From owner-freebsd-current Tue Nov 17 17:45:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA29684 for freebsd-current-outgoing; Tue, 17 Nov 1998 17:45:31 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from lonegunman.xfiles.org.uk (lonegunman.xfiles.org.uk [194.200.230.242]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA29673 for ; Tue, 17 Nov 1998 17:45:25 -0800 (PST) (envelope-from benhutch@lonegunman.xfiles.org.uk) Received: (from benhutch@localhost) by lonegunman.xfiles.org.uk (8.9.1/8.9.1) id BAA16434; Wed, 18 Nov 1998 01:44:46 GMT (envelope-from benhutch) Message-ID: <19981118014446.C15587@xfiles.org.uk> Date: Wed, 18 Nov 1998 01:44:46 +0000 From: Ben Hutchinson To: Garrett Wollman Cc: freebsd-current@FreeBSD.ORG Subject: Re: /etc/rc.d, and changes to /etc/rc? References: <199811180123.UAA28352@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <199811180123.UAA28352@khavrinen.lcs.mit.edu>; from Garrett Wollman on Tue, Nov 17, 1998 at 08:23:01PM -0500 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In which case how about implementing something a little more sysv-ish for only ports? Ie, a rough idea: /usr/local/etc/rcS.d for startup scripts /usr/local/etc/rcK.d for shutdown scripts With a "compatibilty" /usr/local/etc/rc.d directory for old style ports. New ports which wish to use sysv-ish startup and shutdown can. Those which don't, don't. Would this provide sufficient granularity? - Ben On Tue, Nov 17, 1998 at 08:23:01PM -0500, Garrett Wollman wrote: > Yes, the ports are almost all broken -- that's one of my biggest > beefs. > > When you consider how trivial it usually is: > > #!/bin/sh > case "$1" in > stop) killall postmaster;; > *) > rm -f /tmp/.s.PGSQL.* > su -l postgres -c 'exec postmaster -S -o -F >$HOME/errlog' & > echo -n ' pgsql';; > esac > > ...there's really no excuse for not doing it right. -- "I Want To Believe" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message