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 1RxwkG-0006Ec-V7 for garchives@archives.gentoo.org; Thu, 16 Feb 2012 08:31:17 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5919EE0EA3; Thu, 16 Feb 2012 08:30:58 +0000 (UTC) Received: from smtpq3.gn.mail.iss.as9143.net (smtpq3.gn.mail.iss.as9143.net [212.54.34.166]) by pigeon.gentoo.org (Postfix) with ESMTP id AA946E0AC8 for ; Thu, 16 Feb 2012 08:29:19 +0000 (UTC) Received: from [212.54.34.138] (helo=smtp7.gn.mail.iss.as9143.net) by smtpq3.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1RxwiN-0005YC-4I for gentoo-user@lists.gentoo.org; Thu, 16 Feb 2012 09:29:19 +0100 Received: from 5ed027d6.cm-7-1a.dynamic.ziggo.nl ([94.208.39.214] helo=data.antarean.org) by smtp7.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1RxwiM-0007nX-Nw for gentoo-user@lists.gentoo.org; Thu, 16 Feb 2012 09:29:19 +0100 Received: from localhost (localhost [127.0.0.1]) by data.antarean.org (Postfix) with ESMTP id 6D6372A8F for ; Thu, 16 Feb 2012 09:34:41 +0100 (CET) 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 mdxB5Yy3T7zb for ; Thu, 16 Feb 2012 09:34:40 +0100 (CET) Received: from www.antarean.org (net.antarean.org [10.10.11.5]) by data.antarean.org (Postfix) with ESMTP id B41E52149 for ; Thu, 16 Feb 2012 09:34:39 +0100 (CET) Received: from 10.20.13.50 (SquirrelMail authenticated user joost) by www.antarean.org with HTTP; Thu, 16 Feb 2012 09:34:40 +0100 Message-ID: <53f772f8762eb4f7a7a41072e795a3ba.squirrel@www.antarean.org> In-Reply-To: References: Date: Thu, 16 Feb 2012 09:34:40 +0100 Subject: Re: [gentoo-user] Can no longer use symlinks in /etc/init.d with openrc-0.9.8.4 ? From: "J. Roeleveld" To: gentoo-user@lists.gentoo.org User-Agent: SquirrelMail/1.4.21 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=iso-8859-1 X-Priority: 3 (Normal) Importance: Normal Content-Transfer-Encoding: quoted-printable X-Ziggo-spambar: / X-Ziggo-spamscore: 0.7 X-Ziggo-spamreport: BAYES_05=-0.5,KHOP_DYNAMIC=0.244,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: e233a67c-d74f-4776-84f5-074c70b184c0 X-Archives-Hash: 07515cc3511233386425eca95bf929a2 On Thu, February 16, 2012 6:24 am, 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/pa= th > > (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/ge= ntoo/gatewall.init > > Rgds, > -- > FdS Pandu E Poluan > ~ IT Optimizer ~ > > =C2=A0=E2=80=A2 LOPSA Member #15248 > =C2=A0=E2=80=A2 Blog : http://pepoluan.tumblr.com > =C2=A0=E2=80=A2 Linked-In : http://id.linkedin.com/in/pepoluan > Pandu, I haven't checked the source yet, but I'm wondering if the scripts are looking for the "conf.d" file in the location: " ../conf.d " (based from the actual location of the init-script) Can you try the following: # mkdir -p /opt/wallmator/initscripts/conf.d # ln -s /etc/init.d/gatewall /opt/wallmator/initscripts/conf.d/gatewall and then recreate the original link for the init-script. --=20 Joost