From owner-freebsd-questions@FreeBSD.ORG Mon Dec 27 12:50:21 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 D9F07106564A for ; Mon, 27 Dec 2010 12:50:21 +0000 (UTC) (envelope-from nu2daboro08@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8E7FD8FC18 for ; Mon, 27 Dec 2010 12:50:21 +0000 (UTC) Received: by qyk36 with SMTP id 36so8054017qyk.13 for ; Mon, 27 Dec 2010 04:50:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Lzabb2SNRVMgBp6u04PMBlSLS0HIvzVym/xSHEQEeRs=; b=L4v08WQ5DXVbHrpnysIAxDL9TrIqvJXgIbidagioUK5dSGt4Mwx1dke/b7kw8ADN0m 12reZnHrn72Jf6oNJhcS1xf/cGSEr0tNp7gL5hg992btQCj++tdupw13WrqcBu4rahzt 3uX4jROoxszw9YbslMWZIsHEIrNYT4lQTtals= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=gC5lGXPTfyT8OmQTR9Ud7JsD53+LCOWmWBcGbW0Fb4l0kzJ4xkdzkKZnx5mNaVvbg9 hG8QBgRLVh/E293XFZtGk7hti6/Y5f4C23w5TExrOrg8m1AMcg9uFK8RiGY+Ebcwd+AQ gkmNsVJHiaC2dXg5iu2uLr7Lox+mL/J7/ym6E= MIME-Version: 1.0 Received: by 10.229.79.135 with SMTP id p7mr10910928qck.154.1293454220745; Mon, 27 Dec 2010 04:50:20 -0800 (PST) Received: by 10.229.216.67 with HTTP; Mon, 27 Dec 2010 04:50:20 -0800 (PST) In-Reply-To: <20101227071218.9b7ad3f2.freebsd@edvax.de> References: <20101227071218.9b7ad3f2.freebsd@edvax.de> Date: Mon, 27 Dec 2010 07:50:20 -0500 Message-ID: From: Nu 2 Da Boro To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: rcorder X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2010 12:50:21 -0000 Thanks, but I'm still unable to get it to work... I'm trying to get barnyard2 to boot after mysql I placed mysql and/or mysql-server under PROVIDE and/or REQUIRE in rc.d/barnyard2. Then ran rcorder to show the correct setting and still no luck. I was able to uncomment REQUIRE and that produces an error which now causes barnyard2 to load after mysql. Funny how things work. Thanks again, n00b Anci On Mon, Dec 27, 2010 at 1:12 AM, Polytropon wrote: > 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, ... >