y595705120 hace 3 años
padre
commit
315269017b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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