From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 92FAA1381F3 for ; Sun, 26 May 2013 10:57:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4825AE0BFE; Sun, 26 May 2013 10:57:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4ED09E0BF9 for ; Sun, 26 May 2013 10:57:27 +0000 (UTC) Received: from localhost (178-37-163-206.adsl.inetia.pl [178.37.163.206]) (using SSLv3 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 68F2333DF5F; Sun, 26 May 2013 10:57:25 +0000 (UTC) Date: Sun, 26 May 2013 12:09:21 +0200 From: =?ISO-8859-2?B?TWljaGGzIEfzcm55?= To: gentoo-dev@lists.gentoo.org Cc: TomWij@gentoo.org Subject: Re: [gentoo-dev] eselect init Message-ID: <20130526120921.6d9a1dce@gentoo.org> In-Reply-To: <20130526114538.315f106a@TOMWIJ-GENTOO> References: <51A08A68.3020900@gentoo.org> <20130526084332.1a8afa69@gentoo.org> <20130526105823.4d191bc7@gmail.com> <20130526112025.7bf00d3f@gentoo.org> <20130526114538.315f106a@TOMWIJ-GENTOO> Organization: Gentoo X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.18; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA512; boundary="Sig_/EaCRZr_HEIdW5IDUdux0HK+"; protocol="application/pgp-signature" X-Archives-Salt: 51fa91df-9eeb-48d3-918b-215276900f26 X-Archives-Hash: 677d3501ccf80753e5f06283ed8ecf72 --Sig_/EaCRZr_HEIdW5IDUdux0HK+ Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable On Sun, 26 May 2013 11:45:38 +0200 Tom Wijsman wrote: > On Sun, 26 May 2013 11:20:25 +0200 > Micha=B3 G=F3rny wrote: >=20 > > It is *easy*. > >=20 > > ln -s /sbin/newinit /sbin/init.new > > mv /sbin/init.new /sbin/init > > > > Easy and atomic. The inconsistency potential is similar to one given > > by init upgrades. Yet we don't do anything magical to defer init > > upgrade until reboot, and that's why the upgrades go smoothly. >=20 > Easy isn't always good. It's not atomic since you can't reboot and > because of that I wouldn't call it smooth either. Can't you? How come? > > > I think that safest way not using wrapper is to stop all services > > > and keep only mounted /, than change things (symlinks,configuration > > > update) and reboot.=20 > >=20 > > This can be done two ways. > >=20 > > One is hacking into init (RC) reboot procedure. It's fragile, it needs > > to be fit into the right moment and I'm not sure if all inits will > > handle this without actually needing to patch the code. And in the > > end, the init gets replaced before init stops working anyway. >=20 > You're making things way more complex than a wrapper would do. I'm not > a fan of using the words "hacking", "fragile" and "not sure" for > selling an approach; so, why were you suggesting the symlink approach? Don't mix the two mails. I am showing how fragile the solution suggested by Robert is. While you seem to be replying to every mail possible to repeatedly advocate your idea. --=20 Best regards, Micha=B3 G=F3rny --Sig_/EaCRZr_HEIdW5IDUdux0HK+ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQJ8BAEBCgBmBQJRod9RXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RUJGMjBGOTk2RkIzQzIyQ0M2RkNBNDBC QUJGMUQ1RkY4QzgxMTBBAAoJELq/HV/4yBEKci0P/3Cp2x4qNlvsa41OHk/LDKre J2t3eA0NM86ZtSCSpCbnGog4COTKvGI/hR/HIpyL3ivrWYFSgW0BSuo7WqLrJrTd zeVXGMT+fkd23eWjwtm2dNe6Jf60vIDzumIW1eJhOm52BNcEggq6gx5iDkjjRD1I hzu6Bqz5CMEgpg0HIqTZU+Y2M85Cq7tZ4pi0uJckE2QaoyPRegm2r8eHbr8V3hPu skVqXa3kvyuUTU8MvAcqsUBnn28dtw7z0F7AUe23q/remYwzylkwZhtvit33v8yn EHw6xCxYGGHKU5uM0CRXS3cbtD/ArcmUkxdPw1W14F2ZbE1nD2xXxlNi/QT7tfAx xF6BtoxWois/q8H09a58+11adaJb1JpmJtKkJI37logeAPWCcq/2eYAwMihOW4Tk kTznaPDt4zNUlKrZDT9JLtx7eS8l3Blet/CP8Cydi3cs+cSCPdCXVh9ESprumHqA Caz7g5WoYip86rfg5wNGLzS4jMgHISWfs0nb4WGTLL0uZnoB7pQQfco+X574FhuC ZwCgDXoHtwk4MzHoAlKBgzF6Ns2v453E6MXVVtXz2UGfdTAU3QG1rAs01Vl4L2nD 0IidRHjkrHxxoWRVaUwzoshRgOjt0QxvDZSR7NigbaGBG6mTCsmqusEyTfJF1Ux6 J4lI1aPeEC5yYsbUD9ZO =UTvI -----END PGP SIGNATURE----- --Sig_/EaCRZr_HEIdW5IDUdux0HK+--