5 ms·
And it uses Linux native services like cgroups for isolation.
by ape4 3y ago
And it uses Linux native services like cgroups for isolation.
- bandrami 3y agoSo does any init system if you tell it to; systemd just forces you to use them
- esarbe 3y agoManually writing bash scripts to juggle cgroups is not "the init system supporting it". With systemd, this comes out of the box.
- bandrami 3y agoI mean, you (or somebody) need to write a short bash script for each service on sysv, and adding cgroup management to that isn't particularly hard. I just never understood how people find that more complex than a huge mess of unit files that transpile down to God-knows-what, but apparently people do. The user services systemd offers are legitimately cool (though shepherd does it better), I've just never personally understood how people find it "simpler" as a system service manager.
- esarbe 3y agoThanks for the clarification. But I still don't get it; have you ever _seen_ a complete init script? These things are hundreds of lines long if you want to account for stuff like PID management and restart capability and isolation. And you have to do that for every service on your system. And they are not even really portable.
- bandrami 3y agoIt only gets that long if you include the LSB dependency nonsense. Look at Slackware's scripts and tell me where those hundreds of lines are hiding.
- esarbe 3y agoOkay. Would you mind explaining how you set up dependencies between the various services if you don't use the "LSB dependency nonsense"? What does Slackware use for that?
- bandrami 3y agoYou write the shell commands that start them in the order you want them started in and run that from your rc system. I stg I have no idea why people find this so hard.
- esarbe 3y agoFor me the hard part comes when you don't want these services run all the time, but only when needed. How'd you do that?
- bandrami 3y agoInetd, the software people mysteriously re-invent every decade or so
- esarbe 3y agoAnd then you don't have dependencies anymore, so you're back to square one. I don't see how this is supposed to be more comprehensible or even "simpler" than a 12 lines unit file.
- bandrami 3y agoSeveral dozen unit files whose dependencies need not be listed in the files themselves, you mean. Which is why it's a step backwards in terms of simplicity. You get the dependencies just like you do with any other socket activation. Web request starts the web server, which connects to and starts the application server, which connects to and starts the data store.