Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2005 10:38:03 -0400
From:      "J.R. Oldroyd" <fbsd@opal.com>
To:        freebsd-rc@freebsd.org
Subject:   Use of rcorder for local rc.d/*.sh scripts
Message-ID:  <20050603143803.GP886@linwhf.opal.com>

next in thread | raw e-mail | index | archive | help
I posted this to -current yesterday; it was suggested I resend to
this list.

	-jr


----- Forwarded message from "J.R. Oldroyd" <fbsd@opal.com> -----

From: "J.R. Oldroyd" <fbsd@opal.com>
Date: Thu, 2 Jun 2005 17:10:23 -0400
Subject: Use of rcorder for local rc.d/*.sh scripts
To: freebsd-current@freebsd.org

Is there a reason that rcorder is not used in /etc/rc.d/localpkg
so that the scripts there can be ordered using their tags?

If not, could we make the following change to /etc/rc.d/localpkg:

--- localpkg.orig	Fri Oct  8 13:52:43 2004
+++ localpkg	Thu Jun  2 16:53:56 2005
@@ -36,7 +36,7 @@
 		done
 		script_save_sep="$IFS"
 		IFS="${script_name_sep}"
-		for script in ${slist}; do
+		for script in `rcorder -s nostart ${slist} 2>/dev/null`; do
 			if [ -x "${script}" ]; then
 				(set -T
 				trap 'exit 1' 2

If we do, there may be some scripts that ports install in the
local/etc/rc.d dirs that need rcorder tags adding, notably those
that currently use "000.foo.sh" names to ensure they're started
first.

	-jr
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

----- End forwarded message -----



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