y595705120 3 年之前
父节点
当前提交
315269017b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -99,7 +99,7 @@ func restart(ctx *cli.Context) error {
 	logger.Info("restarting..." + string(pid))
 	stop := exec.Command("kill", "-9", string(pid))
 	stop.Start()
-	time.Sleep(5 * time.Second)
+	time.Sleep(2 * time.Second)
 	start := exec.Command(pidName, "start")
 	start.Start()
 	return nil