#571769 listenaddr parser errors should affect the exit state

Package:
nbd-server
Source:
nbd
Description:
Network Block Device protocol - server
Submitter:
martin f krafft
Date:
2010-02-27 21:39:40 UTC
Severity:
wishlist
#571769#5
Date:
2009-11-24 15:50:24 UTC
From:
To:
# nbd-server localhost:12345 `pwd`/nbd-file 1G -C /dev/null
# echo $?
0

This led me to believe it started fine, but it did not. Only syslog
gave the answer:

  nbd_server[12138]: could not parse listen address

Ideally, 'localhost' should be usable instead of the IP. In any
case, parser errors should probably be reported to stderr and affect
the exit status.

#571769#10
Date:
2009-11-24 16:01:13 UTC
From:
To:
Since nbd-server also does not log when it started successfully, one
has to use netstat or ps to check whether the server process
actually started or not.