News for hackers. Stuff that matters.
Re:A Word about Systemd by o11c on Tuesday September 17, 2024 @08:00PM (#41574186)
Related, it's also blatantly ignoring that it's the first software that even allows interoperability in its space, and was thus in huge demand by both developers and administrators.

(Edit: Other anti-systemd rant sites sometimes mention these obliquely as "upstream dependencies" and "workplace-mandated", while ignoring the fact that those people have reasons to demand those things)

But HN really doesn't need to litigate this all again.

Re:A Word about Systemd by unsnap_biceps on Tuesday September 17, 2024 @08:05PM (#41574222)
what do you mean by interoperability?
Re:A Word about Systemd by jeyernhg on Tuesday September 17, 2024 @08:09PM (#41574253)
in the bad old times, every linux distro implemented its init scripts in a slightly different way, often with distro specific tooling and commands for accomplishing most management tasks
Re:A Word about Systemd by westurner on Tuesday September 17, 2024 @08:23PM (#41574336)
systemd unit files require minimal modification by distro repackagers.

With SysV-init, it was/is necessary to modify /etc/init.d/servicenamed shell scripts to get consistent logging and respawning behavior. With SysV init it's not possible to add edges between things to say that networkd must be started before apached; there are 6 numeric runlevels and filenames like S86apache, which you then can't diff or debsums against because the package default is S80apache and Apache starts with A which alphabetically sorts before the N in networkd.

And then add cgroups and namespaces to everything in /etc/init.d please

Re:A Word about Systemd by michaelmrose on Tuesday September 17, 2024 @09:08PM (#41574645)
There were and are other options other than systemd and SysV years prior in fact. OpenRC and upstart predate it and s6 was not much later.
Re:A Word about Systemd by westurner on Tuesday September 17, 2024 @09:52PM (#41574919)
It's possible to pipe stdout to syslog through logger by modifying the exec args. But I'd rather take journald's word for it.

Supervisord (and supervisorctl) are like s6. I don't think any of these support a config file syntax for namespaces, cgroups, seccomp, or SyscallFilter. Though it's possible to use process isolation with any init system by modifying the init script or config file to call the process with systemd-nspawn (which is like chroot, which most SysV-init scripts also fail to do at all, though a process can drop privs and chroot at init regardless of init system).

systemd works in containers now without weird setup. Though is it better to run a 'sidecar' container (for e.g. certbot) than to run multiple processes in a container?

Re:A Word about Systemd by o11c on Tuesday September 17, 2024 @08:23PM (#41574337)
I (and this applies both with my dev hat and with my admin hat) can now write a unit file, depending on a different unit file, that works the same across all distros (note that this includes random end users whose systems I don't directly have access to). This even works for services that start per-user; no more write-only modifications to user startup files or DE-specific autostart dirs.

Pre-systemd this was unthinkable.

(similar stories apply to non-systemd-proper parts of the systemd project, but I personally haven't used them as much)

Re:A Word about Systemd by michaelmrose on Tuesday September 17, 2024 @09:06PM (#41574626)
Upstart and OpenRC both came years prior. As a matter of course anything which was self contained and standardized could have allowed interoperability. Systemd just actually convinced everyone to standardize not least because its integration with other parts of systemd provided both a carrot: standardization and simplicity for distro maintainers and a stick: the extra work required to use only part of it or especially if one used none of it and was expected to both write ones one unit files AND integration with stuff like gnome which was and remains the most popular singular GUI.
Re:A Word about Systemd by yjftsjthsd-h on Tuesday September 17, 2024 @09:27PM (#41574766)
Conformity is not interoperability. If anything, systemd is like Chrome, so popular that it persuades people to drop interoperability outright and just run with its nonstandard APIs.
Re:A Word about Systemd by rcxdude on Wednesday September 18, 2024 @06:13AM (#41577893)
what standard is systemd replacing? One of the big reasons it's popular is that there was no standard way to do most of the things it does.