5 ms·
I honestly have no clue what you mean. You can take unit files, journald, timers, and all the other neat features from my cold, dead hands. I’m not going back t
by 9dev 2y ago
I honestly have no clue what you mean. You can take unit files, journald, timers, and all the other neat features from my cold, dead hands. I’m not going back to writing brittle shell scripts; systemd has made my life SO much easier.
- chillfox 2y agoWell, that's wonderful for you, glad it works for someone, but that has not been my experience.
- intelfx 2y agoIn the same vein, sorry it doesn't work for you, but that has not been the prevailing experience ;) (Same goes for "unpolished and flaky".)
- michaelcampbell 2y ago> I’m not going back to writing brittle shell scripts Then stop doing that.
- klysm 2y agoWriting robust shell scripts ranges from hard to incredibly difficult. The number of footguns is insane
- chillfox 2y agoIt’s really not that hard. I have found that writing robust shell scripts is pretty easy. Don’t use bash, stick to #!/bin/sh, use shellcheck, wrap all variables in quotes, use command -v to check if a binary is available before trying to use it, and don’t use gnu specific things.
- klysm 2y agoSure all of that is easy, but control flow is a nightmare. How do you deal with cleaning up resources on failures? Idempotency? Traps? It’s a fucking mess
- chillfox 2y agoI don't know what to tell you other than skill issue. I don't think shell is a great language or even that good for configuration, but it is pretty simple and the quantity of footguns are similar to JavaScript. My issue with systemd is not the configuration file/language, that bit is pretty cool. My issue is mostly with all of the half-assed auxiliary services they keep pushing and something is not quite right with systemd itself, the complexity causes issues with weird edge cases. Early in my career I was all for systemd, thought it was the greatest thing ever, then I got bit by the edge cases a few too many times. Meanwhile I have had zero issues with openrc or s6.
- klysm 2y agoI don’t disagree about skill issue. I just don’t think you should require immense skill to implement simple control flow without shooting yourself in the foot. It’s much worse than modern JavaScript in my opinion. I don’t buy the argument about all the auxiliary stuff. You are free to not use it.
- 9dev 2y agoAh, Right. So, how would I add support for reloading the configuration of my init-Script service without restarting it, in a way that works across all major distributions and versions, without googling? Show me your script, compare it to the one line of my unit file, and tell me that isn’t brittle.