Package: nbd-server Version: 1:2.9.11-3 Tags: patch User: debian-...@lists.debian.org UserTags: debian-edu
When booting a machine with the nbd-server package installed, like the Debian Edu thin-client-server, the boot see these messages: tjener:~# /etc/init.d/nbd-server start ** (process:25232): WARNING **: Could not parse config file: Could not open config file. ** Message: Nothing to do! Bye! nbd-server. tjener:~# In Debian Edu, nbd-server is started from inetd by custom scripts, and we do not want to run nbd-server at boot. These messages are quite noisy, and it would be better if nbd-server was quiet during boot if no configuration is found. The error occur in both Lenny and Squeeze. Please fix it for both, to allow Debian Edu to avoid getting more questions from users about this warning. :) This patch should quiet down the script and avoid trying to start the daemon when there is no configuration: --- /etc/init.d/nbd-server 2009-01-31 04:10:15.000000000 +0100 +++ /tmp/nbd-server 2010-08-24 00:40:03.592753608 +0200 @@ -32,8 +32,10 @@ case "$1" in start) - start-stop-daemon --start --quiet --exec /bin/nbd-server --oknodo --pidfile /var/run/nbd-server.pid - echo " $NAME." + if [ -r /etc/nbd-server/config ] ; then + start-stop-daemon --start --quiet --exec /bin/nbd-server --oknodo --pidfile /var/run/nbd-server.pid + echo " $NAME." + fi ;; stop) echo -n "Stopping $DESC:" Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org