News for hackers. Stuff that matters.
Re:We're migrating many of our servers from Linux to FreeBSD by trasz on Monday January 24, 2022 @11:36AM (#30059959)
But they only provide fixed functionality, while shell scripts allow for practically unlimited customization.

As for 500 lines - take a look at proper rc scripts, eg the ones in FreeBSD. They are mostly declarative; it’s nothing like Linux’ sysv scripts, which were in some ways already obsolete when first introduced (runlevels? In ‘90s, seriously?)

Re:We're migrating many of our servers from Linux to FreeBSD by lordgroff on Monday January 24, 2022 @12:18PM (#30060688)
Yeah, this conversation seems a bit like people arguing past each other. But it's a result of the fact that the story on Linux was stuck for so long (e.g., sysvinit on Debian, Upstart with some sharp edged hacks on Ubuntu). Systemd as the solution seems to have sucked out all the air out of the room: either it's great and people are idiots, or it's the worst thing on the planet and people using it are sheep.
Re:We're migrating many of our servers from Linux to FreeBSD by passthejoe on Monday January 24, 2022 @03:25PM (#30063522)
Yes. Exactly.
Re:We're migrating many of our servers from Linux to FreeBSD by crazy_hombre on Monday January 24, 2022 @11:46AM (#30060142)
If you need extra customization capabilities, just run a shell script via the ExecStart= parameter and boom, you have all the power of systemd and the shell combined.
Re:We're migrating many of our servers from Linux to FreeBSD by Spivak on Monday January 24, 2022 @12:23PM (#30060755)
You can even do one better since systemd can natively run rc scripts. If you're on a systemd based distro peak at /etc/init.d. You can even manage services with /etc/init.d and the service command.

The amount of effort systemd went through to make existing software work is genuinely heroic.

Re:We're migrating many of our servers from Linux to FreeBSD by dralley on Monday January 24, 2022 @04:49PM (#30064552)
> But they only provide fixed functionality, while shell scripts allow for practically unlimited customization.

Why is unlimited customization a good thing in the context of a system init?

Re:We're migrating many of our servers from Linux to FreeBSD by trasz on Monday January 24, 2022 @05:06PM (#30064717)
For the same reason it’s a good thing in other contexts. It’s the main reason Unix got popular - because it can be made to fit whatever requirement you have.
Re:We're migrating many of our servers from Linux to FreeBSD by matthewmacleod on Monday January 24, 2022 @12:44PM (#30061099)
But they only provide fixed functionality, while shell scripts allow for practically unlimited customization.

This is the exact opposite of a good thing.