Andre Rodier (HE12026-05-31): > Hello, > > I have an Nginx server running on Debian Trixie, as a "user" systemd > service. It is working, but if I have 100 users, I don't want to spawn > 100 nginx servers just for waiting for connections. > > Each nginx instance "listen" on a unix socket in /run/user directory. > > I tried sockets triggering, and while the log is working, triggering > the nginx server fails, because the socket is already opened. > > Is there a better way to achieve this, i.e. spawning nginx instance on > demand ?
First hit on a web search about “nginx systemd socket activation”: https://www.freedesktop.org/wiki/Software/systemd/DaemonSocketActivation/ Not tested it. But if you need to start 100 instances of nginx and are looking how to achieve it, you probably have an XY problem where you mistakenly assumed you need 100 instances of nginx to achieve your real goal. But you have not share your real goal. Regards, -- Nicolas George

