3 ms·
It used to be process 1 was init, and it forked/exec'd everything else typically from /etc/rc (this elides over a lot) -its the first binary the kernel runs. Ev
by ggm 5y ago
It used to be process 1 was init, and it forked/exec'd everything else typically from /etc/rc (this elides over a lot) -its the first binary the kernel runs. Everything else stems from the birth of user process number 1.
Fork/exec is the lightweight process inheriting of open i/o and memory state with copy-on-write which made Unix a joy to work with. It's a delightful mapping of kernel and userspace into complex inherited tree of processes sharing that origin state (or not. You can close it all down, change things.)
systemd is a complex mega binary which parses control files and subsumes several functions. It's big. It's not small like init. It's not fork/exec simple it forks control processes and monitors children and does a lot of work some daemons did themselves (getty, inetd) but others didn't do. And you get to monitor things. It's not unlike launchctl on OSX or other platforms. And after all /etc/rc is now 5 or more/etc/rcX.d/ complex substates of states to look for scripts, SAT solver complex dependency stuff between semi arcane shellscripts... blah.
PRO: everything is now much more consistent
CON: greybeards like me hate it (beardless btw but meh) because it's complex
- davydm 5y agoconsistency ftw: https://news.ycombinator.com/item?id=29670751 https://news.ycombinator.com/item?id=29670751 gimme open-rc or gimme death actually, sysv was fine too open-rc solves the parallel-startup desire for people who want a faster boot and doesn't hide logs in binary formats which can only be interrogated with specialised tools - my primary reason for leaving Debian-based systems that I'd used for 16 years was having systemd forced on me and trying to deal with how to read good old system logging, not to mention 5-minute shutdown times, slower boot on the same machine than with Ubuntu's upstart or with open-rc.
- fsh 5y agoMy Debian came with rsyslog enabled by default which writes the journald logs to disk as plain text.
- Datagenerator 5y agoTried FreeBSD? Very consistent and has POLA, the principle of Least astonishment. The proper good stuff Dell Isilon and NetApp are relying on.
- kaba0 5y agoBecause using journalctl is so bad.. Hell, you can even forward to a text-based logger. And it’s not like it is some proprietary format either
- tpoindex 5y agoYou want MXLinux - Debian with just enough systemd to work in a modern environment but with SysV init. https://mxlinux.org https://mxlinux.org > not to mention 5-minute shutdown times 5 minutes? Try total hang on shutdown, and often not starting up. That was my systemd experience. I traced it down to a NFS mount that no amount of tinkering would mount reliably pn boot. Granted that was several years ago, but soured me on systemd.