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 <kentfred...@gmail.com>
>> wrote: 
>>> 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.  
>> Well, one thing about Gentoo that certainly isn't simple is our
>> init.d scripts.
>> Compare this:
>> http://pastebin.com/sSDtpF4t  
>More stable link:
>> With this:
>> http://pastebin.com/Lfn8r7qP  
>More stable link:
>> 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).
>Right, that's a bad comparison.
>The equivalent OpenRC init script is:
>description_reload="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 <trollface/>)
>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 :)

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)

Attachment: pgpcf9zp1NjJS.pgp
Description: Digitale Signatur von OpenPGP

Reply via email to