An opinionated lightweight framework to build web api or application.
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
kiyonlin opened this issue 4 years ago Β· comments
Describe the solution you'd like Add daemon feature to dawn. Get options from global config.
Additional context When daemon is enabled, dawn app can restart itself automatically when it crashes.
go run
go build
Set daemon options in config.toml
config.toml
[Daemon] Enable = true Tries = 10 StdoutLogFile = "./daemon.log" StderrLogFile = "./daemon.err"
And reference example for more details.