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 EC58F138010 for ; Mon, 15 Feb 2016 10:56:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D4F821C029; Mon, 15 Feb 2016 10:56:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4D62021C007 for ; Mon, 15 Feb 2016 10:56:07 +0000 (UTC) Received: from shanghai.paradoxon.rec (p4FDA85C4.dip0.t-ipconnect.de [79.218.133.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: polynomial-c) by smtp.gentoo.org (Postfix) with ESMTPSA id 5D41F341052; Mon, 15 Feb 2016 10:56:05 +0000 (UTC) Date: Mon, 15 Feb 2016 11:55:54 +0100 From: Lars Wendler To: Patrick Lauer Cc: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Changing order of default virtual/udev provider Message-ID: <20160215115554.09e0470f@shanghai.paradoxon.rec> In-Reply-To: <56C06E9F.7050609@gentoo.org> References: <56B85B06.7020500@gentoo.org> <56B936DB.1010407@gentoo.org> <56B939C4.20804@gentoo.org> <56C06E9F.7050609@gentoo.org> Organization: Gentoo X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; 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_/R1tMu0UEHav_qrwDNsBQ=fM"; protocol="application/pgp-signature" X-Archives-Salt: 1b943945-d9cd-4b7b-a518-c8804e61f4c1 X-Archives-Hash: e8274d90759170cc2b4454164ac5260e --Sig_/R1tMu0UEHav_qrwDNsBQ=fM Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 14 Feb 2016 13:10:07 +0100 Patrick Lauer wrote: >On 02/09/2016 01:17 PM, Rich Freeman wrote: >> On Tue, Feb 9, 2016 at 3:43 AM, Kent Fredric >> wrote:=20 >>> And a lot of Gentoo is surprisingly simple: Like our use of bash >>> scripts for recipies to build things, like using rsync to >>> deploy/relay not just those recipies, but security notices and >>> news items, which are themselves reasonably simple formats. =20 >> Well, one thing about Gentoo that certainly isn't simple is our >> init.d scripts. >> >> Compare this: >> http://pastebin.com/sSDtpF4t =20 >More stable link: >https://gitweb.gentoo.org/proj/apache.git/tree/2.4/init/apache2.initd >> >> With this: >> http://pastebin.com/Lfn8r7qP =20 >More stable link: >https://gitweb.gentoo.org/repo/gentoo.git/tree/www-servers/apache/files/ap= ache2.2.service >> Systemd does the job in 10% of the code (and half of it is a >> comment), and doesn't implement its own service polling and killer >> script during shutdown independently for every service (not that >> every init.d script even does this - most of them will just leave >> orphans behind, and systemd will catch orphans that even the lengthy >> init.d script for apache misses). >> =20 >Right, that's a bad comparison. > >The equivalent OpenRC init script is: > >``` >#!/sbin/runscript >command=3D"/usr/sbin/apache2" >command_args=3D"${APACHE2_OPTS}" >description_reload=3D"A graceful restart advises the children to exit >after the current request and reloads the configuration." > >stop() { > $command $APACHE2_OPTS -k graceful-stop >} >reload() { > $command $APACHE2_OPTS -k graceful >} >``` >So that's almost exactly the same (modulo braces and newlines). There's >no equivalent for PrivateTmp, and we ignore the extra data in >/etc/tmpfiles.d (for creating runtime dirs). Which is bad, but that's >another rant ;) > >Just that the current initscript does a lot more, and ... uhm ... why >is the systemd unit sourcing /etc/conf.d/apache2 ? Becasue I don't give a damn about systemd and nobody cared to send patches yet. >(Oh, and dependencies, but those just slow down startup ) > >So if you compile the equivalent naive init script there's not much >difference, and the initial argument falls on its face and disappears. > >I'm getting tired of having this argument :) > --=20 Lars Wendler Gentoo package maintainer GPG: 21CC CF02 4586 0A07 ED93 9F68 498F E765 960E 9B39 Attention! New gpg key! See (self signed server cert for now) http://www.gentoofan.org/blog/index.php?/archives/9-New-gpg-keys.html --Sig_/R1tMu0UEHav_qrwDNsBQ=fM Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWwa66AAoJEFcd0tA0PGA5GdIP/RkJLNhR6Y7zirgGFJYTvzWz z6nA6xmQwuqa0Nb7btfn5map4fGgAQnEkJrRy4u2HuiaiXm/ag3WK2nSzfpvVxU5 jp1sLlQk4vfQPmuQtswk8lA0qapwaEmzzZVEH5HulPgoeiLC/4k55bqfWJdCMgeQ M/VrMNsczlEkQ60fnm80xPMNUctC5QRr6AKB2R9r1aeHDEheilZbM3r06ln+O2fA iIpsRH0v3DaGO/iPvuUNRlielFhk/PubBethNDA+NSv6Uo4nqWCNmQChruACb60Q 4DWSezjMP7uJEYBlaO8wXT2uoDlgwdlD223Rlr28DrcTDuT8ldJx3BqS+QdOGrPF TuUn02ggJaW6n2mfYN9qBk0Lgra7zRsuYxHielSEIM34gIyxFhpzmeWEEbZ9enzA HaX9y4p667hrBK8s7ZNjW1hCmUkynNrXbvrffy1mCtxdUcD1apR2D8tvplXBuIU8 bZk/4Qo5Mt5PtnpSK4CgeKHia/bnfY4rOje80arI6QjNoIyT3rpPXA2F0HwSud9x rsuF4yQXG3FJ+yUtxp0FFiY+Xpvj/WooYtcdp71Mwux98E55rtqmKK3ezzZx0EzO r72ByoLipeG4ByqQ9eD2rNhHrxDfOX0pS00pWJXAtuifnQ1eL00oPibFv6b/yZ6Y ReBDhgFFDLEg2ZYR64ql =1RYs -----END PGP SIGNATURE----- --Sig_/R1tMu0UEHav_qrwDNsBQ=fM--