Re: Spawning nginx instance on demand

"Andre Rodier" <[email protected]>
Newsgroups gmane.linux.debian.user
Message-ID <[email protected]>
On Mon Jun 1, 2026 at 9:32 AM BST, Nicolas George wrote:
> Andy Smith (HE12026-05-31):
>> so can these be used to create the socket with ownership of user and
>> read/write to system nginx?
>
> Maybe let us ask for the error message before randomly assuming the
> issue is caused by permissions.
>
> (My guess is the issue is not caused by permissions.)
>
> Regards,

Yes, it is not permissions. Here is the exact error message:

~~~
bind() to unix:/run/user/1001/nginx-webdav.socket failed (98: Address already in use)
~~~

I think this behaviour is normal, as the socket is already created by systemd socket file.
My question would be something like “is there a way to share the socket between systemd and nginx” ?

Since systemd let me run a service when a socket is accessed, I thought that there would be an nginx option to listen on an already existing socket.

-- 
🌐 https//rodier.me/
signature.asc (application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE-----

iIYEABYKAC4WIQQgxtr4dsuCnRR2flvDkWYfWv7tQgUCah1JZRAcYW5kcmVAcm9k
aWVyLm1lAAoJEMORZh9a/u1CapMA/j4lkUD9aGuaLW9Q4BFfaTOzcmEgU199HSrv
66NzpfiOAP9Gtl5s9yUeBHKDETlGmj214EpbPAGtTczkmpzsufkjBQ==
=KpVD
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.