10 "git.curoverse.com/arvados.git/sdk/go/config"
13 const defaultCfgPath = "/etc/arvados/boot/boot.yml"
16 cfgPath := flag.String("config", defaultCfgPath, "`path` to config file")
19 cfg := DefaultConfig()
20 if err := config.LoadFile(cfg, *cfgPath); os.IsNotExist(err) && *cfgPath == defaultCfgPath {
21 log.Printf("WARNING: No config file specified or found, starting fresh!")
22 } else if err != nil {
26 enc := json.NewEncoder(os.Stderr)
27 enc.SetIndent("", " ")
30 var ctl Booter = &controller{}
31 err := ctl.Boot(withCfg(context.Background(), cfg))
33 log.Printf("controller boot failed: %v", err)