diff --git a/src/remote/remote_daemon.c b/src/remote/remote_daemon.c index 5893492875..cd55b2c39e 100644 --- a/src/remote/remote_daemon.c +++ b/src/remote/remote_daemon.c @@ -57,6 +57,7 @@ #include "virgettext.h" #include "util/virnetdevopenvswitch.h" #include "virsystemd.h" +#include "virhostuptime.h" #include "driver.h" @@ -1150,6 +1151,14 @@ int main(int argc, char **argv) { exit(EXIT_FAILURE); } + /* Let's try to initialize global variable that holds the host's boot time. */ + if (virHostBootTimeInit() < 0) { + /* This is acceptable failure. Maybe we won't need the boot time + * anyway, and if we do, then virHostGetBootTime() returns an + * appropriate error. */ + VIR_DEBUG("Ignoring failed boot time init"); + } + daemonSetupNetDevOpenvswitch(config); if (daemonSetupAccessManager(config) < 0) {