I've been confronted with a specific situation recently, searching through the internet and linux specs did not give a definitive answer. Well, I believe it's not possible but maybe you know the way.
The scenario is as follows
- /var/lib/mysql/mysql.sock created by a mysql process on start
- /var/lib/mysql/mysql.sock disappears e.g. removed by some external action
ss -lpn | grep mysqldstill shows this unix socket
u_str LISTEN 0 128 /var/lib/mysql/mysqld.sock -786114905 * 0 users:(("mysqld",pid=30220,fd=41))
lsof -p 30220 | grep /var/lib/mysql/mysqld.sockshows a process is bound to it
mysqld 30220 mysql 41u unix 0xffff8800245603c0 0t0 3508852391 /var/lib/mysql/mysqld.sock
Is it possible to recreate/restore the deleted unix socket file without the parent process restart so that clients can still connect through the this socket file as before the deletion?