From owner-freebsd-questions@FreeBSD.ORG Mon Sep 20 16:02:44 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 11F9A106566B for ; Mon, 20 Sep 2010 16:02:44 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (ns2.r-bonomi.com [204.87.227.129]) by mx1.freebsd.org (Postfix) with ESMTP id A55ED8FC0C for ; Mon, 20 Sep 2010 16:02:43 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.3/rdb1) id o8KG0iNk013372; Mon, 20 Sep 2010 11:00:44 -0500 (CDT) Date: Mon, 20 Sep 2010 11:00:44 -0500 (CDT) From: Robert Bonomi Message-ID: <201009201600.o8KG0iNk013372@mail.r-bonomi.com> To: drizzt321@gmail.com, freebsd-questions@freebsd.org Cc: Subject: Re: Problem running custom startup script at proper time 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, 20 Sep 2010 16:02:44 -0000 > From owner-freebsd-questions@freebsd.org Sun Sep 19 16:37:49 2010 > From: Aaron > Date: Sun, 19 Sep 2010 14:39:08 -0700 > To: freebsd-questions@freebsd.org > Subject: Re: Problem running custom startup script at proper time > > Doh! Forgot to reply to the mailing list. > > > Nope, that didn't work either. Darn. Maybe I'll just have to modify > the /etc/rc.d/zfs script to run the for loop first :( How about just modifying the REQUIRE header on it to include 'gnop' the sequencer that selects the order to run rc.d things in sorts based on the REQUIRE/PROVIDES dependencies. > > On Sun, Sep 19, 2010 at 14:04, Boris Samorodov wrote: > > On Sun, 19 Sep 2010 13:55:41 -0700 Aaron wrote: > >> On Sun, Sep 19, 2010 at 13:27, Boris Samorodov wrote: > >> > On Sun, 19 Sep 2010 12:40:52 -0700 Aaron wrote: > >> > > >> >> # PROVIDE: gnop > >> > > >> > What if you try "PROVIDE: disks" instead? > > > >> No good. I also tried the following in the gnop script: > > > >> # PROVIDE: gnop > >> # REQUIRE: mountcritlocal > >> # BEFORE: zfs > > > > /etc/rc.d/geli has this: > > ----- > > # PROVIDE: disks > > # REQUIRE: initrandom > > # KEYWORD: nojail > > ----- > > > > Seems that that should work for you. If not I'm out of ideas > > for now. > > > >> The services -r looks promising, but the dmesg is still the same :( > >> =A0When I disable zfs auto-mount, and then run it manually after boot, > >> it uses the .nop devices that were created correctly as it should. > > > >> EXCERPT services -r > >> /etc/rc.d/mdconfig > >> /etc/rc.d/mountcritlocal > >> /etc/rc.d/gnop > >> /etc/rc.d/zfs > > > > -- > > WBR, Boris Samorodov (bsam) > > Research Engineer, http://www.ipt.ru Telephone & Internet SP > > FreeBSD Committer, http://www.FreeBSD.org The Power To Serve > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > /