From owner-freebsd-questions@FreeBSD.ORG Thu Oct 16 06:21:37 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FF2716A4B3 for ; Thu, 16 Oct 2003 06:21:37 -0700 (PDT) Received: from sferics.mongueurs.net (sferics.mongueurs.net [81.80.147.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ACBD43FB1 for ; Thu, 16 Oct 2003 06:21:36 -0700 (PDT) (envelope-from david@landgren.net) Received: from landgren.net (81-80-147-206.bpinet.com [81.80.147.206]) by sferics.mongueurs.net (Postfix) with ESMTP id E09D3CBEF for ; Thu, 16 Oct 2003 15:21:34 +0200 (CEST) Message-ID: <3F8E9B53.6060309@landgren.net> Date: Thu, 16 Oct 2003 15:21:23 +0200 From: David Landgren Organization: The lusty, decadent delights of imperial Pompeii User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030916 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org References: <20031016105145.T16424@gwdu60.gwdg.de> In-Reply-To: <20031016105145.T16424@gwdu60.gwdg.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: exe order in /usr/local/etc/rc.d X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2003 13:21:37 -0000 Konrad Heuer wrote: > On Thu, 16 Oct 2003, RJ45 wrote: > > > >>I have never understood in which order are execurted the scripts which are >>in /usr/local/etc/rc.d >> >>most port applications like mysqld, cyrus-imapd, spamd etc. put their >>startup scripts into /usr/local/etc/rc.d but they are not ordered by a >>number attached before the script name (like the Unix SysV style) >> >>anyone has some hint about this ? >>How can I Set the startup order into /usr/local/etc/rc.d [...] > Thus the scripts are executed in alphabetic order. Which means you are free to rename them as 00-mysqld.sh 20-cyrus.sh ... etc, in order to obtain the necessary ordering. Just remember that if the files were put there from ports, upgrading or removing the port in question, expect it to squawk about missing files. If you were really fussed about it, you could create a /usr/local/etc/rc.d/ordered, and symlink /usr/local/etc/rc.d/mysqld.sh to /usr/local/etc/rc.d/ordered/00-mysqld etc. etc. as required and set local_startup="/usr/local/etc/rc.d/ordered" in /etc/rc.conf David