From owner-freebsd-questions@FreeBSD.ORG Mon Dec 27 06:12:22 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0792B1065693 for ; Mon, 27 Dec 2010 06:12:22 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id BD6EC8FC0A for ; Mon, 27 Dec 2010 06:12:21 +0000 (UTC) Received: from r55.edvax.de (port-92-195-37-207.dynamic.qsc.de [92.195.37.207]) by mx01.qsc.de (Postfix) with ESMTP id 22D763D2B3; Mon, 27 Dec 2010 07:12:19 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id oBR6CIsf005725; Mon, 27 Dec 2010 07:12:18 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 27 Dec 2010 07:12:18 +0100 From: Polytropon To: Nu 2 Da Boro Message-Id: <20101227071218.9b7ad3f2.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: rcorder X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2010 06:12:22 -0000 On Mon, 27 Dec 2010 00:38:53 -0500, Nu 2 Da Boro wrote: > I am trying to change the boot order for a service on my server... I have a > service that boots before mysql and need to change this. I have read the man > page for rc and rcorder and still unable to come up with a solution to my > problem. There are keywords that determine the order of execution, those are especially REQUIRE and PROVIDE. You need to set them in the rc.d/ scripts. For example, the script that has to run first gets the proper PROVIDE setting, the script that depends on the first script - the one that should therefore be started _after_ the previous service is up - gets the REQUIRE keyword. You can see a better explaination in "man rcorder". See the rc.d/ files of your services. E. g. /usr/local/etc/rc.d/mysql-server: # PROVIDE: mysql # REQUIRE: LOGIN # KEYWORD: shutdown Depending on the service that mysql requires, you would need to code something like # PROVIDE: bla in this service's startup file, and then add # REQUIRE: bla to mysql's startup file. The correct order of execution is determined automatically by the rcorder mechanism. > I'm pretty familiar with Ubunutu and the /etc/rc0-6 but I'm new to > FreeBSD FreeBSD does not have this kind of runlevel based startup. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...