]> xenbits.xensource.com Git - libvirt.git/commit
remote: Improve daemon startup error reporting
authorCole Robinson <crobinso@redhat.com>
Wed, 24 Feb 2010 16:29:35 +0000 (11:29 -0500)
committerCole Robinson <crobinso@redhat.com>
Thu, 25 Feb 2010 16:43:57 +0000 (11:43 -0500)
commit67b2eb104239805791d8fcc5dc55cf01ef841ff9
tree665e2d420699b0a2a9881d1020d1c13930c6c032
parent482869633accf9a6adeacf63486cd6b306da96d2
remote: Improve daemon startup error reporting

If I toggle enable_tcp in libvirtd.conf and add --listen in
/etc/init.d/libvirtd, I get the unhelpful error:

Starting libvirtd daemon: error: Unable to initialize network sockets.

Running without --daemon provides much more useful info:

sudo libvirtd --listen
11:29:26.117: error : remoteCheckCertFile:270 : Cannot access CA certificate '/etc/pki/CA/cacert.pem': No such file or directory

The daemon architecture makes it difficult to report this useful
info if daemonized, so point users to /var/log/messages and
dropping the --daemon flag if they want more info.
daemon/libvirtd.c