Re:OpenBSD, C, httpd and SQLite – Web App stack
by dannypgh on Saturday June 09, 2018 @10:51AM
(#17273296)
I'm familiar with inetd, but I don't understand your point. Unix is more than a dozen years older than 4.3BSD. Claiming that long lived daemons is somehow anti-Unix is absurd.
Just ask init or getty.
Re:OpenBSD, C, httpd and SQLite – Web App stack
by tannhaeuser on Saturday June 09, 2018 @10:54AM
(#17273313)
My point was that the idea of small, self-contained apps that do one thing, and do it well, was in no way limited to shell programming.
Init and getty are small, self-contained system demons that are part of the O/S rather than application servers inviting long-running, single address-space processes for business logic.
> When a TCP packet or UDP packet arrives with a particular destination port number, inetd launches the appropriate server program to handle the connection. For services that are not expected to run with high loads, this method uses memory more efficiently, since the specific servers run only when needed. Furthermore, no network code is required in the service-specific programs, as inetd hooks the sockets directly to stdin, stdout and stderr of the spawned process.
[1]: https://en.wikipedia.org/wiki/Inetd