zhangmeng
2019-12-23 0cee64d2b2034f1068c894e0adec9037be03c93b
main.go
@@ -5,6 +5,7 @@
   "analysis/util"
   "os/signal"
   "strconv"
   "syscall"
   "analysis/app/master"
   "analysis/app/slave"
@@ -29,8 +30,6 @@
   ruleIPC string
   configPath string
   showConsole bool
)
const (
@@ -49,8 +48,6 @@
   flag.BoolVar(&shm, util.SHM, false, "use shm for performance")
   flag.IntVar(&gpu, util.GPU, -1, "gpu index")
   flag.BoolVar(&showConsole, "log-console", false, "log show console, only for debug")
   // 指定获取配置信息从sqlite,有最高优先级, master使用
   flag.StringVar(&util.FSI.IP, util.FetchSrvIP, util.FSI.IP, "fetch server ip, like camera info")
@@ -71,9 +68,7 @@
      logo.Config(file, 500, 3, 30)
      logo.Infoln("START LOGGER FILE: ", file)
   }
   if showConsole {
      logo.ShowConsole()
   }
   logo.ShowConsole()
}
func setParamters() {
@@ -129,7 +124,7 @@
   if ret {
      c := make(chan os.Signal, 1)
      signal.Notify(c, os.Interrupt, os.Kill)
      signal.Notify(c, os.Interrupt, os.Kill, syscall.SIGTERM)
      <-c
   }