Slashdot Mirror


GSOC Project Works To Emulate Systemd For OpenBSD

An anonymous reader writes Through a Google Summer of Code project this year was work to emulate systemd on OpenBSD. Upstream systemd remains uninterested in supporting non-Linux platforms so a student developer has taken to implementing the APIs of important systemd components so that they translate into native systemd calls. The work achieved this summer was developing replacements for the systemd-hostnamed, systemd-localed, systemd-timedated, and systemd-logind utilities. The hope is to allow for systemd-dependent components like more recent versions of GNOME to now run on OpenBSD.

64 of 314 comments (clear)

  1. Oh well ... by Xolotl · · Score: 3, Funny

    ... there goes that refuge then ;)

    1. Re:Oh well ... by Anonymous Coward · · Score: 5, Informative

      Not really.

        * This software is not going to end up in the base system but in ports. It will not have a big effect on the base system.
        * The goal of the project is not to import the systemd programs like the NTP daemon or the cron daemon. Instead, it implements some of the APIs so it will be easier to port software that depends on some systemd features.

      When the software is ready and ends up in OpenBSD ports, it will probably only be installed if you install a piece of software that depends on systemd (future gnome, for instance). So if you don't install these kinds of software, you don't even end up having "systembsd" on your computer.

      In what way is the refuge gone now?

    2. Re:Oh well ... by Kvorg · · Score: 4, Insightful

      Exactly, it would seem this will simply emulate the behaviour for applications that expect it, sitting on a DBUS interface. Since it now seems the whole systemd mess will not go away, I would assume this is the "correct" approach to manage it.

      I can only wish non-RH GNU/Linux distrost adopted the same approach.

      --
      -Kvorg
    3. Re:Oh well ... by dpilot · · Score: 4, Insightful

      I see systemd as the product of a culture clash between old and old-school Linux users/developers and new Linux users/developers.

      Linux was really derived from Unix, and in a very important way RMS has always been correct in insisting it be called GNU/Linux. Because "GNU's Not Unix" only in the licensing aspect. Philosophically, GNU really IS Unix.

      A few years back, Linus and Linux started getting a lot of attention in the computing and even general press. Linux started becoming cool and interesting. It started attracting new users, a new wave of early adopters, and since early adopters also tend to be developers, Linux attracted a new wave of developers.

      But these developers has a key difference - they had no Unix background. They largely came from Windows, simply because that's the largest source of developers, by simple demographics. But they weren't "fleeing Windows", they were attracted to Linux. They also brought their background, attitudes and preferences with them, and that includes a heave dose of "The Windows Way" and little to nothing of "The Unix Way."

      The result is systemd - the Windows Way ported on top of the Linux kernel.

      Then there is the demographics issue. The classical Linux market share has been so small and Windows so big that it doesn't take many Windows users/developers to swamp out the old school Linux/Unix camp. We're bing "conquered by demographics." They don't see anything wrong with systemd because it fits their background and world view perfectly - in fact it's a better fit for them than SysV Init is. There's also a bit of the Windows "One Way" attitude at work, attempting to push systemd across the board.

      Fortunately there are a few never-newbie distributions still around, and it seems that the old-school Unix users are congregating there and will keep them alive. Or there are always the BSDs..

      --
      The living have better things to do than to continue hating the dead.
    4. Re:Oh well ... by dpilot · · Score: 2

      I didn't name it by name in my original post, but I believe Slackware will be one of those safe distributions. Nor do I ever see a need to go off of Linux.

      I simply predict that in the future there will be two platforms - GNU/Linux and SystemD/Linux. The latter will have the lion's share of the users, and will indeed achieve World Domination. The former will continue to have something under 1% of market share, just where we've always been.

      In this respect, BSD will not be any safer port in the storm than the old-school-Linux distributions. We all use pretty much the same userspace - we have to just hope that SystemD/Linux doesn't fiddle with that userspace so badly that we can't use it. As long as things are reasonable orthogonal - part of the Unix WAy - we're OK. But we know the new crowd has no respect for that, and indeed feels that it's part of what is holding Linux back.

      --
      The living have better things to do than to continue hating the dead.
    5. Re:Oh well ... by dpilot · · Score: 3, Insightful

      > the reality is systemd is a bunch of individual modules

      I disagree. Technically you are correct, but the same modularity argument can be made for practically any piece of code bigger than "Hello World". However in practice systemd is shipped as a monolith. I just checked, and even on Genoo with its uber-flexible USE flags and compilation from source, you can't shut off individual features like logging, dhcp, ntp, etc. Most people just install the binaries.

      No, systemd is not the end of the world. But it would be the end of running my machines the way I wish to - at least without spending more time and effort keeping it fenced in as you suggest.

      --
      The living have better things to do than to continue hating the dead.
    6. Re:Oh well ... by weilawei · · Score: 3, Interesting

      Not much chance of successful management when his idea of ignoring log corruption is to IGNORE it. Yes, literally, ignore it. Feature, not bug. In Poettering's own words,

      Yupp, journal corruptions result in rotation, and when reading we try to make the best of it. they are nothing we really need to fix hence.

      This guy shouldn't be allowed anywhere NEAR system software!

    7. Re:Oh well ... by BadDreamer · · Score: 3, Insightful

      You have the "linux way" (it is actually the Unix philosophy) completely wrong. It is not "one program for one task". It is:

      "Developers should build a program out of simple parts connected by well defined interfaces, so problems are local, and parts of the program can be replaced in future versions to support new features. This rule aims to save time on debugging code that is complex, long, and unreadable."
      -- Eric S. Raymond

      "Developers should design their programs to be flexible and open. This rule aims to make programs flexible, allowing them to be used in other ways than their developers intended."
      -- Eric S. Raymond

      "This is the Unix philosophy: Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface."
      -- Doug McIlroy

      What systemd does wrong is abandoning this and using API's internally - API's it does not even lock down. It's a morass.

      "Everything was small... and my heart sinks for Linux when I see the size of it. [...] The manual page, which really used to be a manual page, is now a small volume, with a thousand options... We used to sit around in the Unix Room saying, 'What can we throw out? Why is there this option?' It's often because there is some deficiency in the basic design â" you didn't really hit the right design point. Instead of adding an option, think about what was forcing you to add that option."
      -- Doug McIlroy

      "Developers should design for the future by making their protocols extensible, allowing for easy plugins without modification to the program's architecture by other developers, noting the version of the program, and more. This rule aims to extend the lifespan and enhance the utility of the code the developer writes."
      -- Eric S. Raymond

      Yes, systemd IS the end of the world that many people want you to believe.

    8. Re:Oh well ... by gweihir · · Score: 3, Interesting

      Actually, systemd is all-or-nothing. If you let even a tiny bit in, countless things will break unless you take the whole POS. The developers are very keen on making sure of that.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    9. Re:Oh well ... by gweihir · · Score: 2

      The fascinating thing is that despite numerous public demonstrations of incompetence and arrogance by the systemd team, their trash is still hailed as the second coming by many people. Has stupidity really become that mainstream in IT?

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    10. Re:Oh well ... by gweihir · · Score: 2

      Well said. I personally hope that at least Gentoo will remain immune. That Debian caved is utterly pathetic and I will definitely migrate away from them as soon as they try to force systemd on me.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    11. Re:Oh well ... by gweihir · · Score: 2

      I have absolutely no problem with being in the 1%. There are hardly more than 1% competent IT users anyways, so I will feel right at home there. And the plus side, I recently did some development work on Linux that then also worked fine on Solaris (2 or 3 minor changes dues to different error handling) and Cygwin. So my guess is being in the 1% wil not result in any kind of lock-in, just a far saner environment to work in.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    12. Re:Oh well ... by gweihir · · Score: 2

      Well said.

      1. Ignoring sound engineering practices has a tendency to be hugely expensive later on. I hope that Linux has enough competent folks, that they will eventually decide to leave the cretinistic systemd crowd behind. The Kernel seems to be unaffected so far. And while Gentoo has had to come up with eudev, it seems to be relatively easy to do without systemd. Of course Gnome has just one place these days: In the trash.

      2. Clearly, yes. And maybe also addressing a "not enough vulnerabilities" complaint by the NSA.

      3. I think he believes he is Linus reincarnated. As that does not really work, he tries to encapsulate the kernel instead.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    13. Re:Oh well ... by Dcnjoe60 · · Score: 2

      Are you stupid? Modules compiled together are not a "modular" system in the UNIX philosophy at all. They are one program.

      Except the separate systemd modules are all seperately functioning executables. That's why if you want to run gnome-shell, you can simply include the logind daemon from systemd along with whatever init system you want to use. Even if you choose to compile all of systemd, it only uses the daemons you turn on. How is that not modular?

    14. Re:Oh well ... by Endymion · · Score: 3, Informative

      The thing the inexperienced systemd developers (but I repeat myself) do not understand is that "modular" isn't about some technical detail such as how you compile various features. For example, busybox intentionally compiles everything into one big binary. The features it provides, on the other hand, are still very modular in the UNIX sense. The key difference is that the tools busybox provides ("cat", "wc", "mkdir", "dd", and many others) all implement well defined APIs.

      What is an Application Programming Interface (API)? It's not some function you can call, or the fact that a program understands some option ("--foo"). It is not even the documentation that may or may not be provided that describes how to use some feature. So what is it?

      An API is a PROMISE .

      It is a social feature, not a technical one. The functions, options, and documentation are just the technical implementation of that promise. The key part of an API is that it is a promise by the developer that if you want to interact with some feature, this is the way to do so, because while other internal stuff may change at any time, the promised API will be stable and reliable.

      The problem with systemd is exactly this. Pulling a n00b move and agglutinating various features into one project is annoying and not recommended, but it is not, on its ownn, a reason to avoid systemd. The problem came when Poettering stripped down the barriers betwen features with the specific goal of removing established APIs. His stuff may compile into various separate programs, but Pottering is very careful to keep various key interfaces "unstable", specifically to not make any promise about how those interfaces will work in the future. He likes to call this hididng of interfaces "efficency" or "removing complexity". What he never mentions is that many of us used those promises, and by removing them he has at best forced others to do a lot of work to fix the breakage, or at worse made various features impossible.

      A good example is logind, which was absorbed into systemd just so promises about its behaviuor in the future ("stable APIs") could be removed.

      The reason many of us that have been watching Poettering's cabal for many years now suggest these changes are intentional and malicious are based on this. Occasionally removing features because of a technical need or bug or security requirement is understandable. Purposfully stripping out entire sets of features - that is, the features that allow other groups to develop with confidence that some feature they won't simply vanish - is something entirely different.

      If MS acted like Poettering's cabal and removed a formerly-public API that competetors used - while promoting their own product that happens to use internal, not-publicly-promised APIs, the world would be screaming "monopoly". This happened, and resulted in several high-profile court cases.

      So go ahead an prove that you don't know what you're talking about and assert that systemd is in any way "modular", when non-modularity was an explicit goal behind systemd. The rest of us are choosing to not go along with Poettering's attempt to embrace and extend Linux into a cheap, buggy, feature-free windows clone.

      --
      Ce n'est pas une signature automatique.
  2. Stupid, stupid stupid by Anonymous Coward · · Score: 2, Insightful

    Why in God's name would you want to infect well designed OSs with Systemd ?
    That's unbelievably stupid.

    1. Re:Stupid, stupid stupid by Noryungi · · Score: 2

      Go tell that to the GNOME dev, who adopted systemd and now require it on all platforms running Gnome.

      I don't run that piece of crap myself, but it has been ported under OpenBSD, and some people want to keep using it on OpenBSD.

      --
      The right to offend is far more important than the right not to be offended. (Rowan Atkinson)
    2. Re:Stupid, stupid stupid by jythie · · Score: 2

      Within FOSS there are still pragmatic realities and politics involved. The major distributions are not democracies, they have core groups who make the decisions regarding what goes in or stays out. Applications developers who want their stuff to work on major distros have to follow the direction and standards of the distro maintainers otherwise their projects lose ease and compatibility. Thus one's options can rapidly diminish, it is a bit of a cascade effect. While in theory since it is FOSS one can do whatever they want with it, but in practice unless one is going to devote all their time and resources to altering things one is going to have to use what other people are working with.

      Which gets to the second part of the problem, those core groups inside the major distributions tend to represent certain subsets of users and historically have not been all that open to listening about the needs of users outside their professional and social circles (a good example would be the friction between the server/desktop/web centric maintainers and embedded developers, which caused a lot of displeasure regarding GPLv3), so who's problem it solves is not nessearily a good metric.

  3. Re:Er? by Noryungi · · Score: 4, Insightful

    I would have expected that BSD would be deliriously happy that the evil gaze of Poettering hadn't alighted upon their operating system. Why would you voluntarily infest your system with his daemon spawn?

    Because bloody systemd will be needed if you want to run some brain-dead Linux-only piece of crap software. That's why.

    Emulating systemd allows that software to work on OpenBSD. On the other hand, emulating it means that (a) its working may remain somewhat on the sane side and (b) that emulation will only be installed if the port requires it, therefore limiting the damage.

    And, FYI, OpenBSD could not care less about Poettering and his evil gaze.

    --
    The right to offend is far more important than the right not to be offended. (Rowan Atkinson)
  4. Re:Ye Gods! by Noryungi · · Score: 4, Insightful

    Again, this an emulation of systemd - not the real ugly mess.

    This means that the normal configuration files will probably stay, but will probably be parsed on-the-fly (smartly, one hope) to provide some emulation.

    The reason this is interesting is that it may prove an escape hatch not just for OpenBSD, the other BSDs, but also for some (sane) Linux distributions that refuse to adopt systemd such as Slackware.

    --
    The right to offend is far more important than the right not to be offended. (Rowan Atkinson)
  5. Huh? by Richard_at_work · · Score: 5, Insightful

    Why the hell is a GUI system dependent on a low level system control daemon?

    1. Re:Huh? by Noryungi · · Score: 5, Insightful

      Thank you, you have just summed up the abomination that is systemd for all of us.

      --
      The right to offend is far more important than the right not to be offended. (Rowan Atkinson)
    2. Re:Huh? by Barsteward · · Score: 2

      No, thats an abomination of Gnome, thats not systemd's fault.

      --
      "The hands that help are better far than lips that pray." - Robert Ingersoll (1833-1899)
    3. Re:Huh? by Anonymous Coward · · Score: 5, Insightful

      Because the user of a GUI will want to touch hardware (mount a USB stick, use an audio device, suspend to RAM, configure a wireless network ...) and all of those interactions need some form of permissions broker. The current approach of having a hundred different command line utilities being called from the GUI (and then not working because their command line output has changed yet again) scales very badly and is the reason why linux has a (fairly well deserved) reputation at being hopeless for doing simple things like letting a desktop user use the usb stick they just put in, dealing with audio devices etc...

      Fixing that requires an integrated approach. Layers of crappy shell scripts calling yet more layers of crappy shell scripts calling some binary that then calls some shell script that then pokes something into /sys IS the problem.

      You'll also find that systemd is indeed quite unix-like. It's about a reduction of code duplication. It's about consolidation of functions into one implementation that *does* work as opposed to 20 half-arsed implementations that do not. It's about providing what amounts to a library for daemons ... and libraries are deduplication are good things while reinventing wheels in every single application is bad, right?

      For an application to effectively use these libraries and reduce the amount of code duplication across kde/gnome/xfce/lxde/... it has to actually have access to that code, which means that the thing that provides the code needs to be available. That means that the relevant systemd *component* is there -- and much of this is managed by logind.

    4. Re:Huh? by StormReaver · · Score: 2

      Why the hell is a GUI system dependent on a low level system control daemon?

      Just a wild guess (and I may be wrong), but perhaps it's for better communication of events between the underlying system and the GUI.

    5. Re:Huh? by drinkypoo · · Score: 3, Insightful

      Because the user of a GUI will want to touch hardware (mount a USB stick, use an audio device, suspend to RAM, configure a wireless network ...) and all of those interactions need some form of permissions broker.

      Right. We have multiple capabilities-based security systems available for use with Linux, and we have a pluggable authentication system, and now we need another system to handle privilege management?

      Fixing that requires an integrated approach.

      That's what Unix gives you. Because the system is made up of small pieces, you can recombine them in different ways to achieve your goals. The pieces are designed to integrate with one another.

      You'll also find that systemd is indeed quite unix-like. It's about a reduction of code duplication.

      We achieve that with shared libraries. There is no need for monolithic daemons which serve many purposes. Process creation is cheap on Unix.

      You'll also find that systemd is indeed quite unix-like. It's about a reduction of code duplication. It's about consolidation of functions into one implementation that *does* work as opposed to 20 half-arsed implementations that do not.

      But in fact it's one half-arsed implementation that only works sometimes instead of 10 really brilliant implementations that almost always work, and 10 mediocre ones.

      For an application to effectively use these libraries and reduce the amount of code duplication across kde/gnome/xfce/lxde/... it has to actually have access to that code, which means that the thing that provides the code needs to be available.

      Yeah, it's called a shared library.

      No one has offered an explanation as to what systemd gives us that we did not have before. There is not one single thing. And what we've lost is simplicity. systemd is the opposite of the Unix way.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  6. /etc/inittab by MrKaos · · Score: 4, Interesting

    and rc.d it's so simple. I'm still struggling to understand why systemd is required - what problem it is actually solving. Am I missing something?

    --
    My ism, it's full of beliefs.
    1. Re:/etc/inittab by Anonymous Coward · · Score: 3, Insightful

      The problem it solves is that currently you don't always need to hire RedHat to manage your large Linux clusters.

      While keeping hold of the top end, they are seeing the bottom end fall out from underneath them. And they have to do something to shore up that attrition of tomorrow's decision makers.

    2. Re:/etc/inittab by Barsteward · · Score: 2, Informative

      you could try reading up on it. Here's a taster for you..

      "systemd is a system and service manager for Linux, compatible with SysV and LSB init scripts. systemd provides aggressive parallelization capabilities, uses socket and D-Bus activation for starting services, offers on-demand starting of daemons, keeps track of processes using Linux control groups, supports snapshotting and restoring of the system state, maintains mount and automount points and implements an elaborate transactional dependency-based service control logic. It can work as a drop-in replacement for sysvinit. "

      and if you are in the mood for reading, here's a longer introduction.
      http://0pointer.de/blog/projec...

      its probably getting rid of SCO stuff from Linux as well as its a Linux specific project

      --
      "The hands that help are better far than lips that pray." - Robert Ingersoll (1833-1899)
    3. Re:/etc/inittab by antientropic · · Score: 4, Interesting

      It's so simple that it's broken. See for example http://utcc.utoronto.ca/~cks/s... for a nice overview of all the limitations of SysV init, the most important being that it doesn't actually keep track of what services are running and what processes belong to what services.

    4. Re:/etc/inittab by Rich0 · · Score: 2

      It's not supposed to do that. It's an INIT system. If you want a daemon manager, the init system can start one for you.

      What daemon manager solves those problems? And what is the point of having an init that basically does nothing but spawn a daemon manager and a few gettys? Why not just move that code into the kernel (oh wait, it is already there - it launches init)?

      If your daemon manager really did do all the stuff you want it to do, and it dies, then the effects would be about the same as init crashing anyway.

    5. Re:/etc/inittab by drinkypoo · · Score: 2

      systemd provides aggressive parallelization capabilities,

      which could be provided through some fairly simple tweaks to init scripts.

      uses socket and D-Bus activation for starting services

      We could do this before systemd.

      offers on-demand starting of daemons

      We could do this before systemd.

      keeps track of processes using Linux control groups

      We could do this before systemd.

      supports snapshotting and restoring of the system state

      What does that mean? We could hibernate and resume before. Do you mean, reboot and launch all the same daemons that are running?

      maintains mount and automount points

      We could do this before systemd.

      and implements an elaborate transactional dependency-based service control logic

      Oh good, elaborate. A simple system implemented with init script tweaks would do.

      It can work as a drop-in replacement for sysvinit

      We had several drop-in replacements for sysvinit before systemd.

      its probably getting rid of SCO stuff from Linux as well as its a Linux specific project

      Oh, you're just a troll. There's no SCO stuff in Linux. Further, SCO is (was) its own mutant Unix, with many of its own stupid daemons. Have you ever even run a SCO OS? Even seen one? No? Then please never mention SCO again unless you're making a reference to a lawsuit.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    6. Re:/etc/inittab by CaptnZilog · · Score: 2

      It's so simple that it's broken. See for example http://utcc.utoronto.ca/~cks/s... for a nice overview of all the limitations of SysV init, the most important being that it doesn't actually keep track of what services are running and what processes belong to what services.

      It's not supposed to - a *properly* written service would/could/should keep track of it's own processes, that isn't something init was ever supposed to do (be the 'micro-manager' of everything). If run the rc script to stop a service, and it doesn't stop all the associated processes, that is *NOT* a "problem with init", that is a problem of a poorly written/debugged service, and the code for the service should be fixed - not a whole new massively complex init system to "handle" it (or, in simpler terms, to continue to allow the people writing services to write shitty code because now "systemd will handle it").

    7. Re:/etc/inittab by BadDreamer · · Score: 2

      I don't. And that means a whole range of software does not run on my system.

      Which is the opposite of any UNIX way ever.

  7. Re:Er? by ThePhilips · · Score: 5, Informative

    The three services are actually needed.

    The systemd-localed is simple: it provides the user with capability to change the locale on the fly (and applications with the ability to react on the locale change).

    The systemd-timedated does almost the same for the date and time.

    And the systemd-logind is basically a dbus wrapper to provide access to log-out/shutdown/etc functions.

    The usefulness of logind can be argued, but centralized management of date/time and locale changes were long overdue. Linux is pretty much the only OS remaining, where application, if needed, can't really know if/when date/time or locale has changed.

    In no way the services itself depend on the systemd - they are simply part of the systemd package. Nothing more.

    --
    All hope abandon ye who enter here.
  8. Re:What? by prsephton · · Score: 2

    Seriously, please do some editing before posing.

    That just has to be a Freudian slip

  9. Re:Ye Gods! by Noryungi · · Score: 2

    Read them and weep: http://www.reddit.com/r/linux/...

    TL;DR? Essentially, KDE may end up switching to systemd. Because Gnome (and every other Linux fan-boi) does it.

    --
    The right to offend is far more important than the right not to be offended. (Rowan Atkinson)
  10. Re:ntp is the line in the sand by ThePhilips · · Score: 2

    So the rumors were true that in V2.0 systemd would finally offer integration with ntoskrnl.exe, along with rewrite to take full advantages of the CLR.

    --
    All hope abandon ye who enter here.
  11. How about then backporting from BSD to Linux? by Anonymous Coward · · Score: 5, Insightful

    If BSD's emulation of those Linux systemd APIs is done in a reasonably portable manner, we could then backport the code over to Linux and gain the benefits without being dependent for those functions on the engineering disaster that Lennart has put into process slot 1.

    The BSD folks aren't succumbing to systemd's problematic "kitchen sink in slot 1" approach, so their work could be valuable for those Linux distros that are fighting to keep systemd out of their hair.

    1. Re:How about then backporting from BSD to Linux? by andydread · · Score: 2

      THis a THOUSAND times.

  12. Re:ntp is the line in the sand by jeremyp · · Score: 2

    Not sure about that, but they are inventing a new way to run services. They will have a new program called daemonhostd which can host multiple services. All you have to do is recompile sendmail and apache as shared object libraries and daemonhostd will dynamically load and run them in the same process to save resources.

    As a further refinement, they are also writing kdaemonhostd which is exactly the same but it all runs in kernel space to improve performance.

    --
    All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
  13. Re:Er? by rmstar · · Score: 2

    The three services are actually needed. [...] centralized management of date/time and locale changes were long overdue. Linux is pretty much the only OS remaining, where application, if needed, can't really know if/when date/time or locale has changed.

    Ah no, you are bringing facts into this discussion? How dare you! :-)

    Thank you, actually.

  14. Re:Er? by koinu · · Score: 5, Insightful

    The systemd-localed is simple: it provides the user with capability to change the locale on the fly (and applications with the ability to react on the locale change).

    Locale settings are fine without system-level settings. What is wrong with application-specific LC_xxx settings? And why should I be interested in changing locale in the middle of a desktop session?

    The systemd-timedated does almost the same for the date and time.

    What?! Who the hell changes time on computers? This is not a $5 digital watch! Every reasonable system has got ntpd installed and is set to UTC. The rest is done by selecting the time zone you are in. And stay away from changing time zones by adjusting time! We are not in Windows world where time handling has been fucked up entirely.

    And the systemd-logind is basically a dbus wrapper to provide access to log-out/shutdown/etc functions.

    Why do I need a daemon to log out from a session?

  15. Re:Ye Gods! by Sique · · Score: 3, Interesting

    You know that Gnome is actually a result of The GIMP and not vice versa? Gnome builds on GTK, which stands for GIMP Toolkit (and not Gnome Toolkit). Gnome is basicly a standalone version of GIMPs UI widgets.

    --
    .sig: Sique *sigh*
  16. Huh? by Anonymous Coward · · Score: 2, Informative

    because Desktop Environments DO interact with the lower systems.

    They need access to the DRM and input device, they need access to things like reboot/shutdown/hibernate.

    If I understand it correctly one goal of logind is to run the X-server and the Desktop Environment without root, so they cannot do this directly... they use the logind API for it.

  17. Re:Ye Gods! by Rich0 · · Score: 2

    OpenBSD truly adheres to "KISS", especially regarding simple configuration files. Exactly of what systemd isn't.

    Uh, what isn't simple about configuration in systemd?

    The article mentions logind. Here is my logind config:
    [Login]
    #NAutoVTs=6
    #ReserveVT=6
    #KillUserProcesses=no
    #KillOnlyUsers=
    #KillExcludeUsers=root
    #InhibitDelayMaxSec=5
    HandlePowerKey=ignore
    HandleSuspendKey=ignore
    HandleHibernateKey=ignore
    HandleLidSwitch=ignore
    #PowerKeyIgnoreInhibited=no
    #SuspendKeyIgnoreInhibited=no
    #HibernateKeyIgnoreInhibited=no
    #LidSwitchIgnoreInhibited=yes
    #IdleAction=ignore
    #IdleActionSec=30min
    #RuntimeDirectorySize=10%
    #RemoveIPC=yes

    Just what about that isn't simple? The defaults are basically how most unix-y systems behave anyway, and you can set things like what happens if a user logs out and leaves some processes behind, what happens if somebody pushes the power button, what happens if the console is idle, etc?

    And the functionality of this daemon seems like the definition of "do one thing well." If it didn't have systemd in the filename people would be arguing that "systemd should be more like this."

  18. Re:ntp is the line in the sand by gbjbaanb · · Score: 3, Interesting

    Its actually a very old way to run services. Windows has been doing it this way for years.

    Run process explorer on Windows, click on a svchost.exe process and see what services its running. It made more sense on Windows as a Windows process is more heavy than a Linux one, this is the same reason threads are more common on Windows compared to Linux's spawning processes to provide the same solution.

    Anyway, one issue is reliability - if you want to restart a borked Apache, you can tell it to restart, and if it doesn't you can kill it. Systemd, you'll have to kill the daemonhost that hosts the Apache service, and kill all the other running services too. Assuming the security model allows you to do that.

  19. Re:Ye Gods! by prsephton · · Score: 2

    Biggest myths of systemd:

    Systemd is a necessary replacement for init.d

    Systemd is not necessary at least not for the greater majority of Linux users, nor is it a simple replacement for init.d. Systemd does far more than replace your system startup, replacing just about every system daemon it can- including inetd, logind, syslogd, udevd, and it does so in as incompatible way as it possibly can. Binary log files for example break every utility or app which depend on scanning log files (eg. tail -f logfile | grep ...).

    Systemd is a result of careful needs analysis and planning by a mature team of developers

    Nope. In Poetterings on words (Apr 2010) initial announcement: "Well, the current code-base is mostly my work, Lennart Poettering (Red Hat). However the design in all its details is result of close cooperation between Kay Sievers (Novell) and me. Other people involved are Harald Hoyer (Red Hat), Dhaval Giani (Formerly IBM), and a few others from various companies such as Intel, SUSE and Nokia."

    In other words, the requirements specification, scope, analysis design, initial implementation all belong to Mr Poettering. Quite impressive for one chap.

    Systemd is similar to upstart

    Upstart did a small fraction of what systemd does, as described a year after the initial announcement. Upstart was restricted to indeed simply replacing init.d, and did so in as unobtrusive a manner as possible. You may as well compare apples to oranges, as compare upstart to systemd.

    It seems to me that the referenced article, ostensibly debunking systemd myths, is an exercise in raising red herrings in quick succession, and just as quickly flattening each one. The real problems are brushed under the carpet.

  20. Why Not? by Anna+Merikin · · Score: 3, Interesting

    Mebbe this will motivate some distro to do a similar; I, for one, would go for a distro without systemd nor Gnome, which I never use. Gnome is expendible. For those who like Gnome, why not do it this way?

    1. Re:Why Not? by present_arms · · Score: 2

      PCBSD, Slack, Gentoo and pclinuxos are systemd free :D pclinuxos user here

      --
      http://chimpbox.us
    2. Re:Why Not? by Dcnjoe60 · · Score: 2

      Mebbe this will motivate some distro to do a similar; I, for one, would go for a distro without systemd nor Gnome, which I never use. Gnome is expendible. For those who like Gnome, why not do it this way?

      There is no need on linux to a translation to system calls. Being built on the linux kernel it just makes the system calls it needs. As for Gnome requiring systemd, it doesn't. It uses logind which is just one part of it. People keep implying that systemd is this huge monolithic init system. It isn't. It is made up of numerous individual daemons that you are free to include or not. For instance, you can use all of your current init scripts or upstart and just include logind if you want to use gnome-shell.

      Just like distro's compile the kernel with what features they want to include or not, the same is true with systemd.

    3. Re:Why Not? by fnj · · Score: 2

      PC-BSD is of course not a linux distro at all. It is FreeBSD plus some desktop GUI oriented packaging.

      Gentoo pulls in systemd if you run Gnome.

      So if you're right about the others, that leaves 2 linux distros out of how many hundred that are systemd free - FOR NOW. Enjoy the head in the sand approach while you still can. Linux has already been ruined. The revolution got subverted and pwned by the enemy. Systemd has conceptually a very real point. Where it goes off the rails is in being architecturally such a gigantic monolithic shitball, and subsuming all those other d's into its fat belly. There is absolutely no legitimate reason whatsoever to do so. It's a power play plain and simple.

    4. Re:Why Not? by gweihir · · Score: 2

      I agree. There is no sane reason to do something this stupid engineering-wise, except a power-play.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  21. Re:Er? by Zocalo · · Score: 4, Insightful

    I have three main issues with SystemD that might help you understand where some of us are coming from:

    1. It effectively works as a monolithic replacement for several daemons, contra to core UNIX design tenets, and even though some of those sub-daemons can be swapped out with an alternative, often that works by running the second daemon in parallel - you can't actually disable the SystemD equivalent, let alone remove it altogether. This makes troubleshooting much more complicated when something goes wrong, especially if you have booted a system from a recovery disk to troubleshoot after a crash, compromise, or whatever and can no longer directly access several of the key sources of information necessary to do that.

    2. Because of the growing number of packages that depend on SystemD, and vice-versa, it's creating a huge mess of package inter-dependencies that mean that it's getting almost impossible to build a stripped down and hardened server. Ballmer might have been right with his "Cancer" comment, he just wasn't specific enough: Gnome requires SystemD, $distro wants to bundle Gnome, therefore $distro adopts SystemD - and forces the default install of all the other package dependencies that go with it, thereby increasing the attack surface of the system. So much for hardening systems by removing all superflous code, huh?

    3. All that cruft seems to be bogging the system down. We are currently migrating a large number (much larger than planned after initial results) of systems from RHEL to BSD - a decision taken due to general unhappiness with RHEL6, but SystemD pushed us towards BSD rather than another Linux distro - and in some cases are seeing throughput gains of greater than 10% on what should be equivalent Linux and BSD server builds. The re-learning curve wasn't as steep as we expected, general system stability seems to be better too, and BSD's security reputation goes without saying.

    That said assuming that it "just works" a SystemD based desktop with everything from a desktop application down to the kernel talking through the same set of core services does sound like a nice idea. The problem is that most of us are not actually running Linux desktops; we're running servers and would just like the OS to mostly get the hell out of the way so we can get on with running whatever server daemons we are using. If SystemD were better architected - say a core PID1 init replacement, then a bunch of optional packages I don't even need to install if I want to use an alternative or not bother with at all, plus a massive clean up of the dependency hell that it has introduced - then I'd be a lot happier with it, but as it stands I just can't see including it on a hardened Internet facing server as being a remotely sane thing to do.

    --
    UNIX? They're not even circumcised! Savages!
  22. Re:Er? by Anonymous Coward · · Score: 5, Informative

    The three services are actually needed.

    For what? If you say "to bring more windowsisms to linux" then I can believe it. Otherwise, not so much.

    The usefulness of logind can be argued, but centralized management of date/time and locale changes were long overdue. Linux is pretty much the only OS remaining, where application, if needed, can't really know if/when date/time or locale has changed.

    Unix (not so much linux) has for a really long time been a multi-user system, where multiple users can use different locales and different time zones. The system itself always ran on UTC. UTC is not supposed to change. Users changing their locale need to log out and back in again. That works well enough for the expected frequency of such changes occurring and doesn't need lots of code to notify every running process AND lots of code in every running process to deal with the change.

    As an engineering tradeoff, the Unix way makes sense to me. The poetterix way, not so much. So I don't really buy your "long overdue", no.

  23. Re:Ye Gods! by BadDreamer · · Score: 2

    The problem with logind is that you do not communicate with it like you communicate with everything else in a UNIXy system. It has an API, which is not fixed, and logind in turn relies on API's to communicate with other parts of systemd.

    None of the chunks in systemd do one thing, do it will and provide a UNIXy way to assemble them together. They're a huge blob of interdependent API's.

    And yes, if it wasn't part of this API infested mess people would indeed be arguing that systemd should be more like it. But unfortunately that is not the case.

  24. Re:Needed by who? by ThePhilips · · Score: 2

    Wait, who actually needs to do those things?

    Desktop applications.

    For example, you change time zone or locale in system settings and your organizer app automatically picks up the changes.

    And if the services do not depend on systemd, why are they part of the package?

    Pottering is maintainer of all of them. So he brought it under the systemd umbrella.

    Sounds like a made-up scenario and some bad packaging. Not a real-world need.

    Applications "need" the services. They do not care who provides the services. As was said many times, the daemons - with few irrelevant changes to the source code to remove hardcoded systemd depedency - run fine without systemd.

    Certainly fits the systemd reputation for taking over already-solved problems without any reason, though.

    Yes.

    Pottering also enjoys the confusion he has seeded with the organization of the systemd. He claims simultaneously (depending on the context; and to his advantage) that systemd is modular and monolithic. While in fact systemd has monolithic architecture and modular design. Pretty much the worst combination possible - prominently featured in the MSWindows, why comparison with Windows is highly relevant. (Ideally you want modular architecture, while design could be either monolithic (e.g. Linux kernel, optimized for performance) or modular (e.g. GIMP with the tons of the plug-ins, geared toward extensibility). But monolithic architecture is pretty much the worst thing you could ever do to a software project.)

    --
    All hope abandon ye who enter here.
  25. Re:Er? by LordLimecat · · Score: 2, Interesting

    The idea that systemd is only relevent on the desktop could not be further from the truth. I would say it's even more relevant on servers, where I expect services to be managed reliably. SysV init cannot do that. (E.g., there is no guarantee that after "/etc/init.d/httpd stop" all httpd processes are really gone

    Anyone who has ever tried running BackupExec Linux agents is well familiar with stopping the service 32 times while the process merrily continues running in a borked state, only fixed with a "killall' command.

    Again: I dont really have a horse in this race, but if systemd truly can guarantee that a service stops when it says it does, thats where Im placing my bets. Its absurd that the service system in Linux fails so badly in that regard.

  26. Re:Er? by Zocalo · · Score: 2

    Where, exactly, do I state that I am putting a GUI on a server? Perhaps you got confused when I mentioned Gnome requiring SystemD as an example of how applications making SystemD a dependency was forcing distros into a Hobson's Choice of either adopting SystemD whether they want to or not, or going through a lot of pain to replace it with an alternative when it breaks major dependencies like Gnome? RHEL, like many distros, includes Gnome - but how many of those distros have adopted SystemD mostly as a result of this, not because it is better or worse than the alternatives?

    Note also that I point out that the dependencies work in *both* directions; as antientropic points out Gnome requiring SystemD is absolutely an issue with the Gnome team and nothing to do with SystemD, but it does have implications in that it helps build a mess of inter-dependencies that is making it increasingly hard to strip systems down to the minimum. RHEL's insistance on NetworkManager by default, with all the baggage that brings, doesn't inspire confidence either, as this is apparently one of the next daemon in SystemD's sights - maybe SystemD can improve it, but I'm not holding my breath.

    Anyway, regardless of that, we've made our choice and moved to BSD; SystemD played a significant part in that, but it definitely wasn't the only factor, as I noted in my OP. ?

    --
    UNIX? They're not even circumcised! Savages!
  27. Re:That guy just wasted his time by volkerdi · · Score: 2

    By what strange theory does Slackware support systemd? And how is the conversation being "held back"? At least on LQ, I think it's been discussed to death to the point where there's really nothing new to say about it.

    I can say one thing for certain: you do not know that anything concerning systemd in Slackware is likely or not. Hell, *I* don't.

  28. Re:Er? by Anonymous Coward · · Score: 2, Insightful

    So you point to the "debunk" written by Lennart? He's hardly a fucking unbiased source. Do you use Fox News for your refernces in other sphere's of life?

  29. Re:Er? by CaptnZilog · · Score: 2

    The idea that systemd is only relevent on the desktop could not be further from the truth. I would say it's even more relevant on servers, where I expect services to be managed reliably. SysV init cannot do that. (E.g., there is no guarantee that after "/etc/init.d/httpd stop" all httpd processes are really gone

    Anyone who has ever tried running BackupExec Linux agents is well familiar with stopping the service 32 times while the process merrily continues running in a borked state, only fixed with a "killall' command.

    So you're "fixing" a bad application by changing the OS?

    Apparently that's the "preferred solution" now... to me it seems to make far more sense to fix the application (BackupExec) to work the way it should, but that type of "logic" apparently doesn't apply to the systemd people who think that the "proper" way to fix that is to write a complex init system replacement and continue to allow people who write shitty service/daemon code to continue writing crappy code.

  30. Re:New Gnome? no thanks. by shutdown+-p+now · · Score: 2

    MATE? Xfce? LXQt?

  31. Re:On the order of... by Eunuchswear · · Score: 2

    For small numbers of megabytes, and tens of kilobytes

    in text size the systemd executable is about 1Mb and init about 30Kb. (systemd is bigger in reality as it uses more shared libraries.)

    Running sizes: init (Debian, amd64)

    john@cedric:~$ ps -lyp 1
    S UID PID PPID C PRI NI RSS SZ WCHAN TTY TIME CMD
    S 0 1 0 0 80 0 532 2089 ? ? 00:00:32 init

    And systemd:

    john@celtic:~$ ps -lyp 1
    S UID PID PPID C PRI NI RSS SZ WCHAN TTY TIME CMD
    S 0 1 0 0 80 0 3816 48691 ? ? 00:00:15 systemd

    Systemd's resident size is less than 8 times init's.

    (Fucking slashdot - why won't you get the spacing right)

    --
    Watch this Heartland Institute video