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 1RxvKF-0004h9-7k for garchives@archives.gentoo.org; Thu, 16 Feb 2012 07:00:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CE77AE0C2F; Thu, 16 Feb 2012 07:00:05 +0000 (UTC) Received: from mail-pz0-f53.google.com (mail-pz0-f53.google.com [209.85.210.53]) by pigeon.gentoo.org (Postfix) with ESMTP id E62EDE0E58 for ; Thu, 16 Feb 2012 06:59:06 +0000 (UTC) Received: by dady25 with SMTP id y25so2091738dad.40 for ; Wed, 15 Feb 2012 22:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=zrudrVPyhPJFqq0pv1mJcCXPRmrSPqVF/Ia40nXo5os=; b=sl4UiEXDOXkbbqxFzpCu3jASpfo259vBvyiI7g9o6bagBkfCko9JqkmZi/2j+2o191 9CNZLo0Olfb+1U21dLw3scsTEOkefGQ4akadbFPo/112f2N543lAp6G7dq3Kf1LrU+cS wQf5JEQHZC+jN2TFeEU2Nle8crU8+GEeFZKKA= Received: by 10.68.74.97 with SMTP id s1mr10705207pbv.46.1329375546220; Wed, 15 Feb 2012 22:59:06 -0800 (PST) Received: from mini (nv-71-49-208-116.dyn.embarqhsd.net. [71.49.208.116]) by mx.google.com with ESMTPS id u1sm1580568pbh.75.2012.02.15.22.59.05 (version=SSLv3 cipher=OTHER); Wed, 15 Feb 2012 22:59:05 -0800 (PST) Date: Wed, 15 Feb 2012 22:57:49 -0800 From: Willie Matthews To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Can no longer use symlinks in /etc/init.d with openrc-0.9.8.4 ? Message-ID: <20120215225749.0e990290@mini> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.5; i686-pc-linux-gnu) 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-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 7589c11d-b052-4de5-a675-9a90a8f329e8 X-Archives-Hash: 2babfedc2552973054189c189dad7911 On Thu, 16 Feb 2012 12:24:45 +0700 Pandu Poluan wrote: > I am wondering if any of you had experienced the same difficulty as > me: > > A couple of days ago, I upgraded openrc from (whatever version it was > previously) to 0.9.8.4. > > One of the scripts in /etc/init.d was a symlink > to /opt/some/package/path > > (To be precise, /etc/init.d/gatewall -> > /opt/wallmator/initscripts/gentoo/gatewall.init) > > ((wallmator is a "Firewall Automator" script I'm developing)) > > This morning, I rebooted. Upon time to execute the "gatewall" script, > it complained that some settings (set through /etc/conf.d/gatewall are > not set). I double-checked the settings it complained; yep, they are > there in /etc/conf.d/gatewall. > > I tried `/etc/init.d/gatewall start`, no luck. It still complains of > some vital non-optional settings not being set. > > So, I replaced the symlink: > > cd /etc/init.d > mv gatewall gatewall.old > cp /opt/wallmator/initscripts/gentoo/gatewall.init gatewall > > And tried again `/etc/init.d/gatewall start` ... it worked!! > > So I tried `shutdown -r now` ... there's joy in Mudville! The > "gatewall" initscript now properly reads the settings in > /etc/conf.d/gatewall. > > My question is: Is there a change of behavior in how openrc executes a > script in /etc/init.d/ when said script is a symlink instead of a > 'normal' file? > > PS: For this particular system, everything under / except /boot > resides in the same filesystem. > > PPS: For the contents of the "gatewall" initscript, see > https://bitbucket.org/pepoluan/wallmator/src/edae2e294d07/initscript/gentoo/gatewall.init > > Rgds, I didn't have that problem and upgraded yesterday! -- Willie Matthews matthews.willie@gmail.com