diff --git a/node/node.go b/node/node.go index 1af2a81..5697686 100644 --- a/node/node.go +++ b/node/node.go @@ -39,6 +39,7 @@ func init() { signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM,syscall.Signal(10)) console.RegisterCommandBool("help",false,"<-help> This help.",usage) + console.RegisterCommandString("name","","<-name nodeName> Node's name.",setName) console.RegisterCommandString("start","","<-start nodeid=nodeid> Run originserver.",startNode) console.RegisterCommandString("stop","","<-stop nodeid=nodeid> Stop originserver process.",stopNode) console.RegisterCommandString("config","","<-config path> Configuration file path.",setConfigPath) @@ -64,6 +65,10 @@ func usage(val interface{}) error{ return nil } +func setName(val interface{}) error { + return nil +} + func setPprof(val interface{}) error { listenAddr := val.(string) if listenAddr==""{