I have a RHEL 8 workstation that hosts an app whose GUI is accessible through https on an unprivileged port.
When the app is started, it creates a few socket files in /tmp with random names and the .sock suffix:
$ ls -l /tmp/*.sock srwx------ 1 app app 0 Dec 21 13:30 /tmp/supervisor-358513b0f6222d2339e4ab66d30b0037.sock srwx------ 1 app app 0 Dec 21 13:31 /tmp/mongodb-358513b0f6222d2339e4ab66d30b0037.sock srwx------ 1 app app 0 Dec 21 13:31 /tmp/livegui-358513b0f6222d2339e4ab66d30b0037.sock $ file /tmp/*.sock /tmp/supervisor-358513b0f6222d2339e4ab66d30b0037.sock: socket /tmp/mongodb-358513b0f6222d2339e4ab66d30b0037.sock: socket /tmp/livegui-358513b0f6222d2339e4ab66d30b0037.sock: socket update: The "random" part of the socket filenames is in fact a MD5 of the path where the app is installed.
When people use the app frequently, the app works fine for weeks/months, but when nobody connects to the app for a few days, it stops responding; when that happens I can see that the .sock files got deleted while the app processes are still running...
Is there any way to prevent the deletion of the app socket files in /tmp?