Selaa lähdekoodia

Merge branch 'master' of http://git.ndjsxh.cn:10080/hcyf/ordonnance

y595705120 3 vuotta sitten
vanhempi
commit
85c7cb4a88
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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