Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 1998 01:44:46 +0000
From:      Ben Hutchinson <benhutch@xfiles.org.uk>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: /etc/rc.d, and changes to /etc/rc?
Message-ID:  <19981118014446.C15587@xfiles.org.uk>
In-Reply-To: <199811180123.UAA28352@khavrinen.lcs.mit.edu>; from Garrett Wollman on Tue, Nov 17, 1998 at 08:23:01PM -0500
References:  <Pine.BSF.3.96.981117190738.925F-100000@lorax.ubergeeks.com> <Pine.BSF.4.05.9811171921410.12652-100000@fallout.campusview.indiana.edu> <199811180123.UAA28352@khavrinen.lcs.mit.edu>

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



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