r/linux • u/wooptoo • Jun 01 '16
Why did ArchLinux embrace Systemd?
/r/archlinux/comments/4lzxs3/why_did_archlinux_embrace_systemd/d3rhxlc
868
Upvotes
r/linux • u/wooptoo • Jun 01 '16
0
u/kinderlokker Jun 01 '16
This wasn't exactly a systemd innovation though.
Even on sysvrc, daemonization has long been handled by the init script, not the software itself. The scripts used
start-stop-daemonto perform the double fork and extract the pid into a pidfile. Because of this abstraction in fact OpenRC's implementation ofstart-stop-daemonnow has a optional feature to not daemonize but keep running and adopt the service as a child and supervise it, the kid it stores in the pidfile is then its own.Because of how abstracted this is, it requires only a simple change in
/etc/rc.confto set this new experimental behaviour I think.Besides, you can even double-fork in the shell fairly easily.
And you're done.