X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=vswitchd%2Fovs-vswitchd.c;h=28491fc6c17f5a9d6261e6b4bf4672c09c4a8ee0;hb=1acb6baab0f239bebf5f58d8bd26c90d2573da88;hp=a7b43f7b4f34535e3ce429e0f416bb579c8e5a20;hpb=8b61709d5ec6c4ef58a04fcaefde617ff63fa10d;p=sliver-openvswitch.git diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c index a7b43f7b4..28491fc6c 100644 --- a/vswitchd/ovs-vswitchd.c +++ b/vswitchd/ovs-vswitchd.c @@ -81,7 +81,10 @@ main(int argc, char *argv[]) } unixctl_command_register("vswitchd/reload", reload); - cfg_read(); + retval = cfg_read(); + if (retval) { + ovs_fatal(retval, "could not read config file"); + } mgmt_init(); bridge_init(); mgmt_reconfigure(); @@ -222,6 +225,7 @@ parse_options(int argc, char *argv[]) "use --help for usage"); } + cfg_init(); config_file = argv[0]; error = cfg_set_file(config_file); if (error) {