This commit is contained in:
cdle
2021-09-28 18:14:51 +08:00
parent c4ee0fb340
commit 7c2ece666a
2 changed files with 24 additions and 0 deletions
+5
View File
@@ -13,7 +13,12 @@ import (
"github.com/astaxie/beego/logs"
)
var BeforeStop = []func(){}
func Daemon() {
for _, bs := range BeforeStop {
bs()
}
args := os.Args[1:]
execArgs := make([]string, 0)
l := len(args)