News for hackers. Stuff that matters.
Re:We're migrating many of our servers from Linux to FreeBSD by znpy on Monday January 24, 2022 @04:55PM (#30064608)
Your nice shell-scripts in /etc/rc.d just won't handle a service crashing for any reason, at all (systemd does that)

Your nice shell-scripts in /etc/rc.d will start EVERYTHING and ANYTHING just in, case, even if you don't always need it (systemd does support socket activation)

Your nice shell-scripts can't handle parallelism (systemd can)

Your nice shell-scripts can't reorder stuff at boot, you have to specify it by hand (systemd can via Needs/RequiredBy etc)

Your nice shell-scripts are worthless if you need to run more than one instance of a service per server (with systemd having many instances of the same service is a feature, not an after-thought)

Your nice shell-scripts won't help you troubleshoot a failing service (systemd will, via systemctl status AND journalctl).

Re:We're migrating many of our servers from Linux to FreeBSD by inkyoto on Monday January 24, 2022 @07:54PM (#30066437)
Service restart has been a solved problem in UNIX for over 40 years. It is called inetd. It is not perfect, and it was originally created for a slightly different operating model, but it does restart crashed «services». They are, in fact, called daemons. Shell scripts are for manual service starts, stops and restarts (when the daemon does not support a restart on SIGHUP), they are not meant for the automated service restarts.

Different UNIX systems have gone on to replace inetd to address specific shortcomings of the inetd model with launchd, service management facility, systemd, SAM, but the service restart is not an innovation that systemd has brought along. It is a further, fine-grained, improvement over a decade old concept and a tool + ecosystem that has implemented the concept (inetd + rc scripts).

Re:We're migrating many of our servers from Linux to FreeBSD by anthk on Tuesday January 25, 2022 @01:55PM (#30076249)
If your service crashes, either your service or your build sucks.

OpenBSD does this stuff right. You keep pushing faulty and buggy crap over and over.

Re:We're migrating many of our servers from Linux to FreeBSD by folmar on Monday January 24, 2022 @07:48PM (#30066375)
SysV-RC handles all that apart from socket activation, which is the job of inetd. This is all before systemd.

I must say that now it has more features and the configuration format, while could be simpler, is way better than sysvrc magic comments. I'd suggest it should be XML with a simple config file equivalent for simple cases, as the subtree update in YAML-like is a hell anyway.