public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Luca Barbato <lu_zero@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Reusing systemd unit file format / forking systemd
Date: Sun, 26 May 2013 12:23:51 +0200	[thread overview]
Message-ID: <51A1E2B7.5020803@gentoo.org> (raw)
In-Reply-To: <20130526093755.42b62259@gentoo.org>

On 5/26/13 9:37 AM, Michał Górny wrote:
> By the way, we should really keep the separation between systemd itself
> and the unit files. I agree that systemd is not the best thing we could
> have. But the unit file format is, er, good enough -- and has
> the advantage of eventually taking a lot of work from our shoulders.

Unit files had been considered when I started exploring the idea, sadly 
Joost shown me their limitation wouldn't make people life exactly happy.

> Although some of the ideas (esp. wrt targets) are near to crazy
> and awfully hard to understand, that's what we have and trying to do
> something else is eventually going to make people's lives harder.

Making better mousetraps usually works fine: as long you have generators 
that are good enough to get something working nobody would complain.

> We should *really* work on supporting the unit files within OpenRC
> (aside to init.d files). That's a way to at least:
>
> a) reuse the work that has been done upstream already (when it was
> done),
>
> b) have common service names and startup behavior in all relevant
> distros (which is really beneficial to the users).

Can be done notwithstanding the rest.

> Considering the design of OpenRC itself, it wouldn't be *that hard*.

It is sort of simple.

> Actually, a method similar to one used in oldnet would simply work.
> That is, symlinking init.d files to a common 'systemd-wrapper'
> executable which would parse the unit files.

A compiler is an option as well, as said unit -> runscript should map fine.

> On the completely different topic, I agree that systemd design is far
> from the best and the way it's maintained is just bad. I was interested
> in the past in creating an improved alternative using compatible file
> format and libraries, while choosing a better design, improving
> portability and keeping stuff less integrated.
>
> But the fact is -- I doubt it will make sense, much like the eudev
> project. And it will take much more work, and give much less
> appreciation.

Having stand alone component would probably win you many friends and if 
the whole thing could work on something 
non-linux-latest-with-latest-glibc you'd have one less technical concern.

> First of all, working on it will require a lot of work. Seeing how
> large systemd become and how rapidly it is developing, establishing
> a good alternative (even dropping such useless parts as the Journal)
> will take at least twice that work.

You make clean blueprints, get enough people agreeing with them and 
implement simple workalike for what you care about.

For example logind seems to be the current fad.

> The systemd haters will refuse the project because of its resemblance
> to systemd. The systemd lovers will refuse it because of its
> resemblance to systemd. And the OpenRC lovers will want to design it
> to resemble OpenRC which is just pointless. Then the few remaining
> people will find systemd 'good enough'.

systemd haters, as you name them, could be split in few groups:

- those that consider systemd a bad idea because it is a single item 
with many parts that would break horribly, if your idea is to make it 
less tightly coupled and with less parts many would consider helping.

- those that consider systemd a bad idea because of the force feeding 
theme started with udev incorporation and continued with logind and 
such, again if you are creating alternatives the people would help gladly.

- those that consider key part of systemd just wrong the limitation in 
the unit format or path activation as panacea, in that case you have to 
make clear the scope of your project, you might win few or lose some.

> And even if there are a few people who will want to work on it,
> and design a 'good systemd', they wouldn't get much appreciation.
> Fedora definitely won't care for it. It would have to be really
> definitely awesome for most Linux distros to even notice it.
> And I doubt *BSD people would be interested in something external.

Make it bsd and they would consider helping.

> It is possible that systemd upstream will steal a few patches or ideas
> from it. Yet they will never apply any of the really important changes,
> so the project will have to be maintained indefinitely. The only hope
> for it would be to win over systemd users which I doubt will happen.

Or just make something useful, winning or losing is for the people using 
it. If it works and works fine people will use it.

> So there's a lot of work, no fame or money in it, and most likely more
> work being the only future. Anyone volunteering?

Probably would be better sit down, figure out exactly what you want and 
see who has interest:

E.g.

Init-project

- portable   -> must work on non-linux and non-glibc more or less decently
- modular    -> loose coupling of functionality
- robust     -> the core functionality must not crash or remain 
inconsistent because of libdbus or such often occurring problems 
unrelated to
- compatible -> should grok at least a good subset of systemd unit files.


On a side note I really want to know in detail why you loathe openrc 
with this strength but we can discuss on irc.

lu


  parent reply	other threads:[~2013-05-26 10:24 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-25 16:14 [gentoo-dev] Going against co-maintainer's wishes (ref. bug 412697) Ben de Groot
2013-05-25 16:48 ` Michał Górny
2013-05-25 17:38   ` Rich Freeman
2013-05-25 20:02     ` Chí-Thanh Christopher Nguyễn
2013-05-25 20:40       ` Rich Freeman
2013-05-25 20:45       ` Michał Górny
2013-05-25 21:38   ` Luca Barbato
2013-05-26  7:23   ` Ben de Groot
2013-05-26  7:43     ` Michał Górny
2013-05-26 10:04       ` Rich Freeman
2013-05-26 15:21         ` Ben de Groot
2013-05-26 16:15           ` Rick "Zero_Chaos" Farina
2013-05-26 17:14             ` Matt Turner
2013-05-26 17:19             ` Andreas K. Huettel
2013-05-26  7:54     ` Pacho Ramos
2013-05-25 17:00 ` Pacho Ramos
2013-05-25 17:14   ` Carlos Silva
2013-05-26  7:15   ` Ben de Groot
2013-05-26  7:44     ` Pacho Ramos
2013-05-26  7:45     ` Michał Górny
2013-05-26  9:59       ` Luca Barbato
2013-05-25 18:13 ` Markos Chandras
2013-05-25 19:53   ` Anthony G. Basile
2013-05-25 19:58     ` Mike Gilbert
2013-05-25 21:55       ` Anthony G. Basile
2013-05-25 19:59     ` Rich Freeman
2013-05-26  7:00     ` Michał Górny
2013-05-26  7:22     ` Tiziano Müller
2013-05-26  7:46       ` Pacho Ramos
2013-05-26  7:49       ` Michał Górny
2013-05-26  7:00   ` Ben de Groot
2013-05-26  7:37 ` [gentoo-dev] Reusing systemd unit file format / forking systemd (was: Going against co-maintainer's wishes (ref. bug 412697)) Michał Górny
2013-05-26  8:32   ` Ben de Groot
2013-05-26  9:49     ` Rich Freeman
2013-05-26 10:12       ` Robert David
2013-05-26 10:31         ` Michał Górny
2013-05-26 11:12           ` Rich Freeman
2013-05-26 11:31           ` Robert David
2013-05-26 11:47             ` [gentoo-dev] Reusing systemd unit file format / forking systemd Luca Barbato
2013-05-26 10:23   ` Luca Barbato [this message]
2013-05-26 11:15     ` Michał Górny
2013-05-26 11:59       ` Luca Barbato
2013-05-26 13:35         ` Sergei Trofimovich
2013-05-26 14:22           ` Luca Barbato

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51A1E2B7.5020803@gentoo.org \
    --to=lu_zero@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox