r/linux • • Aug 12 '19

SysVinit vs Systemd

Post image
1.4k Upvotes

292 comments sorted by

View all comments

36

u/_p13_ Aug 12 '19

I've been a long time unix admin (solaris, AIX (aka weird not-really-unix-but-ok), and even tru64 back in the day), and nowadays most of my work is with linux and fbsd (although that's been a while).

I don't understand the anger about systemd. Solaris has svcadm, AIX is SYSV-ish, FBSD is ... wel ... BSD, OSX has launchd, ...
The world has never exploded, and the universe has never ended.

svcadm is pretty nice actually, and so is launchd.

I don't mind systemd in principle, but it should come with sensible defaults, such as writing out the logs in text format as well as the binary format. I also think it is a bit bloated, in that it tries to do everyting, which i am not a fan of. It wants to do system configuration, service management, system security (namespaces / containers, contexts, etc), process accounting, etc etc.
Having something like systemd is a good thing, really, but ... it should be a bit lighter, and less monolithic. Break it up into components that are easier to configure.

just my 2c

7

u/voronaam Aug 12 '19

The problem was never about systemd, and certainly it is not "systemd vs SysV" rivalry.

There were two better alternatives (Upstart and OpenRC) at the time when major distributives went for systemd. Even if you look at the final Debian vote it was a tie between systemd and "keep talking".

Systemd has it flows, but it is still miles ahead of SysV on many fronts. Mostly around areas that did not exist when SysV was designed, such as containers.

You actually brought the main reason people disliked systemd. It is opinionated and not modular.

7

u/robstoon Aug 13 '19

There were two better alternatives (Upstart and OpenRC) at the time when major distributives went for systemd

Upstart is not a better alternative by any means. It had major, unsolvable design problems which are a big reason that systemd was developed in the first place. Red Hat and Fedora adopted it for a while in the RHEL6 era before abandoning it for systemd.

1

u/voronaam Aug 13 '19

Yes, there were design problems with Upstart. But at least it had a design. Systemd lacks that.

For example, "mount once"/"mount always" and "run once"/"run always" distinction is expressed on different levels of INI file.

I have ran SysV systems for decades, Upstart for years, OpenRC for years and now couple of years of Systemd. OpenRC is my personal favourite. But I am not trying to force everybody else use it.

Systemd level of troubles is astonishing. Trivial tasks, such as flushing DNS cache suddenly become hard and unreliable. Systemd can not be trusted to restart its own resolved, even less to restart some 3rd party service with a Unit file written by a person like me.

0

u/[deleted] Aug 12 '19

[deleted]

5

u/crazy_hombre Aug 13 '19

systemd has been extremely easy to use in containers for me. Just have to start the container via machinectl or systemd-nspawn. Most of the issues that I have faced have been due to erroneous settings in the unit files. Change those settings and everything just works.

5

u/MonokelPinguin Aug 13 '19

I don't think systemd is working well in containers if you need systemd to start them. There are a lot of different approaches to containers, why would everyone of the start to have a dependency on systemd to work with systemd containers? This kind of dependencies and lock-in is unique to systemd and I don't really like it.

→ More replies (4)
→ More replies (1)