| | |
| | | import ( |
| | | "analysis/logo" |
| | | "analysis/util" |
| | | "os/signal" |
| | | "strconv" |
| | | "syscall" |
| | | |
| | | "analysis/app/master" |
| | | "analysis/app/slave" |
| | |
| | | ruleIPC string |
| | | |
| | | configPath string |
| | | |
| | | showConsole bool |
| | | ) |
| | | |
| | | const ( |
| | |
| | | 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") |
| | |
| | | logo.Config(file, 500, 3, 30) |
| | | logo.Infoln("START LOGGER FILE: ", file) |
| | | } |
| | | if showConsole { |
| | | logo.ShowConsole() |
| | | } |
| | | logo.ShowConsole() |
| | | } |
| | | |
| | | func setParamters() { |
| | |
| | | } |
| | | |
| | | if ret { |
| | | // c := make(chan os.Signal, 1) |
| | | // signal.Notify(c, os.Interrupt, os.Kill, unix.SIGTERM) |
| | | // <-c |
| | | select {} |
| | | c := make(chan os.Signal, 1) |
| | | signal.Notify(c, os.Interrupt, os.Kill, syscall.SIGTERM) |
| | | <-c |
| | | } |
| | | |
| | | cancel() |