ovsdb-server, ovs-vswitchd: Log version after daemonize_complete().
authorEthan Jackson <ethan@nicira.com>
Tue, 17 Jul 2012 16:28:08 +0000 (09:28 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 17 Jul 2012 16:55:39 +0000 (09:55 -0700)
This fixes unit tests, and generally seems more correct.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
[blp@nicira.com added the change to ovs-vswitchd]
Signed-off-by: Ben Pfaff <blp@nicira.com>
ovsdb/ovsdb-server.c
vswitchd/bridge.c
vswitchd/ovs-vswitchd.c

index 8412cbb91655013769c9b46085a215529dc12ed3..b430b0e56711b3a8ff1f8e664ec44b93e6bdc00e 100644 (file)
@@ -105,8 +105,6 @@ main(int argc, char *argv[])
 
     daemonize_start();
 
-    VLOG_INFO("%s (Open vSwitch) %s", program_name, VERSION);
-
     error = ovsdb_file_open(file_name, false, &db, &file);
     if (error) {
         ovs_fatal(0, "%s", ovsdb_error_to_string(error));
@@ -139,6 +137,8 @@ main(int argc, char *argv[])
 
     daemonize_complete();
 
+    VLOG_INFO("%s (Open vSwitch) %s", program_name, VERSION);
+
     unixctl_command_register("exit", "", 0, 0, ovsdb_server_exit, &exiting);
     unixctl_command_register("ovsdb-server/compact", "", 0, 0,
                              ovsdb_server_compact, file);
index 3a3e58b159d81904b7fd7ad4d54de38593eb4511..fa835e732eb47e755e87d9370d620302322fbecf 100644 (file)
@@ -556,6 +556,8 @@ bridge_reconfigure_continue(const struct ovsrec_open_vswitch *ovs_cfg)
          * forked us to exit successfully. */
         daemonize_complete();
         reconfiguring = false;
+
+        VLOG_INFO("%s (Open vSwitch) %s", program_name, VERSION);
     }
 
     return done;
index 3b6517884498b3591a419b6baab609d1c4d06b45..6062a40a63261c44b977ceeca355e1e6920c2b05 100644 (file)
@@ -85,8 +85,6 @@ main(int argc, char *argv[])
 
     daemonize_start();
 
-    VLOG_INFO("%s (Open vSwitch) %s", program_name, VERSION);
-
     if (want_mlockall) {
 #ifdef HAVE_MLOCKALL
         if (mlockall(MCL_CURRENT | MCL_FUTURE)) {