We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bfe's entrance include many jobs to do, split them into different parts as below example. It'll take more scalabilities, like
Init
Start
syscall.SIGHUP
Stop
reference from go-svc
type bfe struct { } // Init do initialize func (b *bfe) Init(env svc.Environment) error { flag.Parse() if *help { flag.PrintDefaults() return nil } return nil } // Start do start func (b *bfe) Start() error { var err error var config bfe_conf.BfeConfig // start and serve if err = bfe_server.StartUp(config, version, *confRoot); err != nil { log.Logger.Error("main(): bfe_server.StartUp(): %s", err.Error()) return err } return nil } // Stop do stop func (b *bfe) Stop() error { return nil } func main() { b := &bfe{} if err := svc.Run(b, syscall.SIGINT, syscall.SIGTERM); err != nil { bfe_util.AbnormalExit() } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
bfe's entrance include many jobs to do, split them into different parts as below example. It'll take more scalabilities, like
Init
orStart
syscall.SIGHUP
func as to do reload configStop
etc.reference from go-svc
The text was updated successfully, but these errors were encountered: