From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3DAFA1381F3 for ; Mon, 26 Aug 2013 06:04:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99C58E0C13; Mon, 26 Aug 2013 06:03:37 +0000 (UTC) Received: from svr-us4.tirtonadi.com (svr-us4.tirtonadi.com [69.65.43.212]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9FEBBE0C07 for ; Mon, 26 Aug 2013 06:03:35 +0000 (UTC) Received: from mail-vb0-f48.google.com ([209.85.212.48]:63457) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.80.1) (envelope-from ) id 1VDpto-003rlZ-6b for gentoo-user@lists.gentoo.org; Mon, 26 Aug 2013 13:03:36 +0700 Received: by mail-vb0-f48.google.com with SMTP id w16so1712542vbf.21 for ; Sun, 25 Aug 2013 23:03:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4a/ERlwdNhAlAtUpDVDBO5QeN9eeapUl/A5w9jJMec0=; b=jYT9eMj3HEigEFU+7H7DkP9upntDvkovMlqdAXjmaIZZT9xiFBaP+xDy5x9Tzu2u6F 3tQIBrsLZzxf8QGAMd4E80Q+fff1EG2+KLgDM3fB7n76X5nHfyyA202ql2E0cMT5cxvK 1JKWhcC+zJ3vpK3GaWaxSDk6rfB7/ywal4jYlAObI1DXHAREgn9Py1n9MTTfxwv5N2rX PpwnGZojezALvja6W5tbmTyCRKrYO0t6lWAkxTFpk0I/vULfXEKXdoaKZ1b7T0SejKOy wFmIj+DzyFnrkQyyRIjDv9fPWs8NlFJXz3/n/E5vkYErC076+KDoWnUV8LXiD08I6Qw4 292g== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.220.10.194 with SMTP id q2mr13160353vcq.2.1377497014537; Sun, 25 Aug 2013 23:03:34 -0700 (PDT) Received: by 10.220.163.69 with HTTP; Sun, 25 Aug 2013 23:03:34 -0700 (PDT) Received: by 10.220.163.69 with HTTP; Sun, 25 Aug 2013 23:03:34 -0700 (PDT) In-Reply-To: References: <20130825040413.GA3342@solfire> <521987F3.20808@iinet.net.au> <20130825045451.GA25561@solfire> Date: Mon, 26 Aug 2013 13:03:34 +0700 Message-ID: Subject: Re: [gentoo-user] Makeing /dev/rtc1 accessible as soon as possible - how? From: Pandu Poluan To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=001a11c3b9443b13f804e4d384b2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Get-Message-Sender-Via: svr-us4.tirtonadi.com: authenticated_id: rileyer+pandu.poluan.info/only user confirmed/virtual account not confirmed X-Archives-Salt: 7b7c70cd-798c-4dfc-bbb3-c97c42f2f14d X-Archives-Hash: 0227bb15ca06505e0e54037edf5a0f14 --001a11c3b9443b13f804e4d384b2 Content-Type: text/plain; charset=UTF-8 On Aug 26, 2013 8:41 AM, "Mark David Dumlao" wrote: > > On Sun, Aug 25, 2013 at 12:54 PM, wrote: > > Hi Mark, hi William, > > > > the script ds3231 in /etc/init.d is -- according to rc-update -- > > set as folows: > > > > ds3231 | boot > > Long and short of it, here's the boot order: > sysinit -> boot -> (single) -> default > > rc(8) tells me that sysinit is for bringing up system specific stuff > such as /dev, /proc, /sys. So it's appropriate for a special device > file such as yours, with the caveat that you want it up AFTER any > dependencies such as sysfs. > > Now how to do that is to make your script openrc compliant, so... > > > > > There is no corresponding file in /etc/conf.d since the script > > onlu consist of two commands (see previous posting). There is no > > initramfs. > > Since openrc is running your script, it will check /etc/conf.d/same-name > for any script with environment variables. Or you can put it in the init > script itself. Mind you, I don't know where to find documentation on > how openrc implements this, unlike, say, some controversial init system > on this list... > Just to add some info: To the best of my knowledge, scripts in init.d will source the relevant file in conf.d. So, whether or not an initscript requires a conf.d file totally depends on the initscript in question. Rgds, -- --001a11c3b9443b13f804e4d384b2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Aug 26, 2013 8:41 AM, "Mark David Dumlao" <madumlao@gmail.com> wrote:
>
> On Sun, Aug 25, 2013 at 12:54 PM, =C2=A0<meino.cramer@gmx.de> wrote:
> > Hi Mark, hi William,
> >
> > the script ds3231 in /etc/init.d is -- according to rc-update --<= br> > > set as folows:
> >
> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ds3231 | b= oot
>
> Long and short of it, here's the boot order:
> sysinit -> boot -> (single) -> default
>
> rc(8) tells me that sysinit is for bringing up system specific stuff > such as /dev, /proc, /sys. So it's appropriate for a special devic= e
> file such as yours, with the caveat that you want it up AFTER any
> dependencies such as sysfs.
>
> Now how to do that is to make your script openrc compliant, so...
>
> >
> > There is no corresponding file in /etc/conf.d since the script > > onlu consist of two commands (see previous posting). There is no<= br> > > initramfs.
>
> Since openrc is running your script, it will check /etc/conf.d/same-na= me
> for any script with environment variables. Or you can put it in the in= it
> script itself. Mind you, I don't know where to find documentation = on
> how openrc implements this, unlike, say, some controversial init syste= m
> on this list...
>

Just to add some info:

To the best of my knowledge, scripts in init.d will source t= he relevant file in conf.d. So, whether or not an initscript requires a con= f.d file totally depends on the initscript in question.

Rgds,
--

--001a11c3b9443b13f804e4d384b2--