X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=vswitchd%2Fovs-vswitchd.c;h=01645adf9e27a71f33327bd77a7b20cc5acfa271;hb=a20d2466fcd4edc2f2cfbc870c225a3afb96ffd5;hp=8c87feab80ed7a1908c91872246e64d02cb9182b;hpb=23834de273c6bd42362f4e6c013703c5b6fa2fd5;p=openvswitch diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c index 8c87feab..01645adf 100644 --- a/vswitchd/ovs-vswitchd.c +++ b/vswitchd/ovs-vswitchd.c @@ -80,7 +80,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(); port_init(); @@ -219,6 +222,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) {