nbd icon indicating copy to clipboard operation
nbd copied to clipboard

nbd-server fails silently with unixsock existing

Open ari-s opened this issue 3 years ago • 0 comments

when configured with unixsock = /run/nbd-test.sock and the location /run/nbd-test.sock exists, nbd-server silently fails. Only when non-forking

# [ -e /run/nbd-test.sock ] && echo /run/nbd-test.sock existing 
/run/nbd-test.sock existing
# nbd-server ; echo $? ; ps aux|grep nbd
0
root       20820  0.0  0.0   6180   552 pts/0    S+   11:59   0:00 grep nbd

# nbd-server -d; echo $?
1

systemctl start nbd-server "succeeds" even though nbd-server itself isn't actually started

This is related to #122

ari-s avatar May 23 '21 12:05 ari-s