News for hackers. Stuff that matters.
Re:What FreeBSD can offer compared to other operating system... by trasz on Wednesday June 08, 2022 @09:26AM (#31666981)
>Service managers should take care of things like figuring out where stdout and stderr logs are sent to, so you shouldn't have to do that stuff in your service scripts.

You don't have to. The fact that Linux had anachronisms like that wasn't because of shell scripts, it's an entirely orthogonal issue; a typical rc script in, say, FreeBSD, looks like this: https://github.com/freebsd/freebsd-src/blob/main/libexec/rc/.... It's declarative, it's easy to understand, but it also provides you with flexibility when you need it, as opposed to one-off hacks with custom, fixed functionality and random syntax.

Re:What FreeBSD can offer compared to other operating system... by nerdponx on Wednesday June 08, 2022 @09:38AM (#31667148)
You're justifying my point! There is no reason (other than historical) why this should be a Bourne-flavored shell script compared to any other scripting language. You could just as well write this in Lua or Scheme. Even the fact that there is runtime information embedded in the comments should be a big red flag that the wrong tool was chosen for this purpose.
Re:What FreeBSD can offer compared to other operating system... by marginalia_nu on Wednesday June 08, 2022 @11:03AM (#31668386)
To be fair, you can just change the hashbang and write your start up script in lua instead if you have an axe to grind with sh for some reason.
Re:What FreeBSD can offer compared to other operating system... by trasz on Wednesday June 08, 2022 @11:37AM (#31668946)
Yes - except you can't really expect anyone to know Lua or Scheme, while you can assume every even remotely competent Unix/Linux system administrator or power user to know sh(1).