5 ms·
For 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?
by esarbe 3y ago
For 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.
- esarbe 3y ago> Several dozen unit files whose dependencies need not be listed in the files themselves Where else would you expect to declare the dependencies other than the file which defines the service? That's where I would expect to find (and add) the dependencies. > 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. Fair enough!
- bandrami 3y agoBut dependencies can also be expressed by the location of a symlink