Where to put unix sockets

1

I am new to this, so sorry if its obvious. I am running a debian server and installing the likes of UWSGI, NGinx etc on there. The configurations keep talking about pointing to "sockets".

In the build options I seem to be able to specify where the sockets for each program go. By default it looks like most of them go in /tmp/ (not all of them).

Is this a good place for them to go? Im trying to keep things as organised as possible but just bunging them in my tmp directory doesnt seem like the best option.

J.Zil

Posted 2012-10-03T15:35:41.950

Reputation: 227

Answers

1

The defaults I find are usually good. Unix sockets only live while the program is running, so /tmp/ is usually an alright place for them to live, some programs chose to put them into /var/run/ (since while they are in essence "temporary", they have persistent names).

Most clients will look for sockets in the default place first, so changing the default socket location may require additional configuration in clients trying to use that service.

Darth Android

Posted 2012-10-03T15:35:41.950

Reputation: 35 133