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 1RxzHC-0000KJ-Os for garchives@archives.gentoo.org; Thu, 16 Feb 2012 11:13:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2229FE0E7E; Thu, 16 Feb 2012 11:13:11 +0000 (UTC) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by pigeon.gentoo.org (Postfix) with ESMTP id 8E84AE0E45 for ; Thu, 16 Feb 2012 11:12:03 +0000 (UTC) Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 330A920933 for ; Thu, 16 Feb 2012 06:12:03 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute4.internal (MEProxy); Thu, 16 Feb 2012 06:12:03 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=binarywings.net; h=message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; s=mesmtp; bh=TXpuG7bpeNEGtEv3S14MF1jK 2/w=; b=SYl3RpMw0R+SCumOt4KuA/VRpj0jvT4ecbDuY0hTzWKFfBdMQjCkGftm 2jwJiovWIM87YtbprJtgnYmL9Gvxf8YyIzeU52oXSf+uDbir9V+cnQjcuEYIOZLJ qjms5uY6T3SJPDNZ4X+pDjqguF5F3BrBd31N8I/TufqdnuBoLzo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type; s=smtpout; bh=TXpu G7bpeNEGtEv3S14MF1jK2/w=; b=Kpf2rMD0ZFARnX9D9gkiVRuE2eFxBZv0WwaS WlelFvLB/V2clcvIWJXmM6qi1m3mA8q60vFp2tEnb+u6TF5kiKN75Y38HC/nCi9y 4NLRnchNHwQvqVSLNVgmR69LKkoMczvxtgZy+fBoaZLOH7pr/em42oWpzR0OD5lW DVvTnec= X-Sasl-enc: t9aDZmmDYxBnP2PJybic9lx1bylgQoq9jbtQeYOQdiqw 1329390722 Received: from [192.168.5.18] (serv.binarywings.net [83.169.5.6]) by mail.messagingengine.com (Postfix) with ESMTPSA id D14848E0176 for ; Thu, 16 Feb 2012 06:12:01 -0500 (EST) Message-ID: <4F3CE471.6070606@binarywings.net> Date: Thu, 16 Feb 2012 12:11:45 +0100 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20120114 Thunderbird/9.0 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] Can no longer use symlinks in /etc/init.d with openrc-0.9.8.4 ? References: <53f772f8762eb4f7a7a41072e795a3ba.squirrel@www.antarean.org> In-Reply-To: X-Enigmail-Version: 1.3.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBA94ACD1A6806364BE9A2619" X-Archives-Salt: 710ecacd-bb92-4fb0-97b8-7e50dfdd009a X-Archives-Hash: f4506b6f3c947e2aafc905deac21be1e This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBA94ACD1A6806364BE9A2619 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 16.02.2012 11:12, schrieb Pandu Poluan: >=20 > On Feb 16, 2012 3:33 PM, "J. Roeleveld" > wrote: >> >> >> 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 wa= s >> > 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 a= re >> > 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 ~ >> > >> > =C3=82 =C3=A2=E2=82=AC=C2=A2 LOPSA Member #15248 >> > =C3=82 =C3=A2=E2=82=AC=C2=A2 Blog : http://pepoluan.tumblr.com >> > =C3=82 =C3=A2=E2=82=AC=C2=A2 Linked-In : http://id.linkedin.com/in/p= epoluan >> > >> >> 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/gatewal= l >> >> and then recreate the original link for the init-script. >> >=20 > IIRC, it's the responsibility of runscript to source the relevant confi= g > file in /etc/conf.d, and not the initscript's. >=20 > If you peruse the code, you can see that I relied on that feature; ther= e > is no source-ing of any file in /etc/conf.d >=20 > Rgds, >=20 Yes, but maybe runscript resolves the real file location and then sources the conf file relative to that location. Regards, Florian Philipp --------------enigBA94ACD1A6806364BE9A2619 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk885HUACgkQqs4uOUlOuU8tZACfY2LMc2TVlIlv/xtBNIVO+K8T b38An3AzJRPkfFAL7HRUx2WYYA+gvXHg =2RjL -----END PGP SIGNATURE----- --------------enigBA94ACD1A6806364BE9A2619--