From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SWASF-0007gl-DL for garchives@archives.gentoo.org; Sun, 20 May 2012 18:02:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5174FE075B; Sun, 20 May 2012 18:01:47 +0000 (UTC) Received: from smtpq2.gn.mail.iss.as9143.net (smtpq2.gn.mail.iss.as9143.net [212.54.34.165]) by pigeon.gentoo.org (Postfix) with ESMTP id 146BAE073E for ; Sun, 20 May 2012 17:59:45 +0000 (UTC) Received: from [212.54.34.137] (helo=smtp6.gn.mail.iss.as9143.net) by smtpq2.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1SWAPx-0000oj-Er for gentoo-user@lists.gentoo.org; Sun, 20 May 2012 19:59:45 +0200 Received: from 54698b76.cm-12-2c.dynamic.ziggo.nl ([84.105.139.118] helo=data.antarean.org) by smtp6.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1SWAPw-0002cP-CS for gentoo-user@lists.gentoo.org; Sun, 20 May 2012 19:59:45 +0200 Received: from localhost (localhost [127.0.0.1]) by data.antarean.org (Postfix) with ESMTP id 0BE1E2955 for ; Sun, 20 May 2012 20:02:30 +0200 (CEST) X-Virus-Scanned: amavisd-new at antarean.org Received: from data.antarean.org ([127.0.0.1]) by localhost (data.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02GQsX79Qp0q for ; Sun, 20 May 2012 20:02:28 +0200 (CEST) Received: from eve.localnet (eve.lan.antarean.org [10.20.13.33]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by data.antarean.org (Postfix) with ESMTPS id 505291DB4 for ; Sun, 20 May 2012 20:02:28 +0200 (CEST) From: Joost Roeleveld To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Runlevels, ordering initscripts and running them in background Date: Sun, 20 May 2012 19:59:40 +0200 Message-ID: <2695263.nTGWH9Ye2d@eve> User-Agent: KMail/4.8.0 (Linux/3.2.12-gentoo; KDE/4.8.1; x86_64; ; ) In-Reply-To: <20120516141519.79e51913@digimed.co.uk> References: <4FB367FA.2050705@gmail.com> <20120516141519.79e51913@digimed.co.uk> 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 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Ziggo-spambar: / X-Ziggo-spamscore: -0.9 X-Ziggo-spamreport: BAYES_00=-1.9,KHOP_DYNAMIC=0.001,RDNS_DYNAMIC=0.982,T_RP_MATCHES_RCVD=-0.01 X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No X-Archives-Salt: 23f9e33c-26a7-4685-b492-84050ef44477 X-Archives-Hash: af176e5ea3bc5cb41e53b11120b96b83 On Wednesday, May 16, 2012 02:15:19 PM Neil Bothwick wrote: > On Wed, 16 May 2012 09:40:26 +0100, Ignas Anikevicius wrote: > > I want to do this, so that I do not have to wait while non-crucial > > services are being started (e.g. fcron, bitlbee, ntpd to name a few). > > Maybe it is possible to somehow prioritize the initscripts? > > Yes it is. The initscripts themselves have such a mechanism, using the > before and after statements, for example making sure that network > services are started after the network is brought up. You can add your > own rules to the daemons' config files in /etc/conf.d or to /etc/rc.conf. > > To have bitlbee start after xdm either add > > rc_after="xdm" > > to /etc/conf.d/bitlbee or put > > rc_bitlbee_after="xdm" > > in /etc/rc.conf. Both have the same effect, it depends on whether you > want to put all these settings together or in the individual services' > config files. Putting them in /etc/rc.conf makes it simpler to maintain the init-scripts when updating packages. I used to put these things in the init-scripts and occasionally forgot about some of these during an update. -- Joost