4 ms·
This is a neat hack, but the title is a little misleading - most of the real work is handled by inetd, not the shell script.
by drv 16y ago
This is a neat hack, but the title is a little misleading - most of the real work is handled by inetd, not the shell script.
- silentbicycle 16y agoShould every server re-implement inetd, though? Why not let that handle connections, daemontools/runit handle process supervision & logging, and focus on what you're actually trying to do? You don't need OOP for reusability. In the few cases where scalability matters, you can re-implement the relevant behavior, but that's a performance trade-off.