On Ubuntu or *nix systems is there a convention to store Unix Domain Socket files in a specific directory? I've seen applications store it in /tmp, but I thought /tmp can get periodically cleared, no?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
|
None other than the application creating a file in /tmp should remove the file. It's is somewhat common to offer the option to clear /tmp on boot, but this must be enabled by the administrator. My distro will usually put sockets as well as pidfiles in /var/run/appname. For reference: None of these tell you where to put sockets, but they all point to /var as a general purpose folder for stuff created by processes at runtime. |
|||
|
|