y595705120 3 years ago
parent
commit
315269017b
1 changed files with 1 additions and 1 deletions
  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