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 1OfK8V-0002TE-0t for garchives@archives.gentoo.org; Sat, 31 Jul 2010 22:02:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E614AE095B; Sat, 31 Jul 2010 22:01:32 +0000 (UTC) Received: from www01.badapple.net (www01.badapple.net [64.79.219.163]) by pigeon.gentoo.org (Postfix) with ESMTP id CD5D0E095B for ; Sat, 31 Jul 2010 22:01:32 +0000 (UTC) Received: from [127.0.0.1] (unknown [76.14.68.122]) (Authenticated sender: ramin@badapple.net) by www01.badapple.net (Postfix) with ESMTPSA id 02EF58446AC0 for ; Sat, 31 Jul 2010 15:01:26 -0700 (PDT) Message-ID: <4C549D34.2070101@badapple.net> Date: Sat, 31 Jul 2010 15:01:24 -0700 From: kashani User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] mysql use flag witout server, using only client libaries References: <4C519635.8090203@krasko.sk> <20100729185454.15cd8768@digimed.co.uk> <201007292047.31345.peter@humphrey.ukfsn.org> <4C51E674.9000905@krasko.sk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 051818d5-08db-4c95-861c-c4c4f57b68f3 X-Archives-Hash: f1af09dbb255e549ce70aa219754df57 On 7/31/2010 1:58 AM, Stroller wrote: > > On 29 Jul 2010, at 21:37, Tomas Krasnican wrote: >> ... But, when is the mysql in the depend part of rc script (for >> example, when you emerge syslog-ng with mysql enabled flag, that will >> be puted here automaticly), the running localy database is required >> for start this service. It is not required to have it rc-enabled the >> mysql database, because you have already enabled another service, >> which it requires.. > > Surely the rc-scripts should use "before" and "after" instead of "needs" > or "depends". I haven't looked at this recently, but I'm pretty sure > there used to be such a distinction. > > Stroller. For grins I compiled sql support into syslog-ng. Here's the new rc script. depend() { need net use mysql dns logger netmount postgresql after sshd } It'll load after Mysql only if it exists in the current runlevel. As other people have said, there isn't any problem to solve here. kashani