package main import ( "fmt" "os" "runtime" "github.com/vulcand/vulcand/plugin/registry" "github.com/vulcand/vulcand/service" ) func main() { runtime.GOMAXPROCS(runtime.NumCPU()) if err := service.Run(registry.GetRegistry()); err != nil { fmt.Printf("Service exited with error: %s\n", err) os.Exit(255) } else { fmt.Println("Service exited gracefully") } }