mirror of
https://gitee.com/goploy/goploy.git
synced 2024-11-30 03:07:59 +08:00
A -s stop wait for 5 second
This commit is contained in:
parent
0b67c71823
commit
ecb5acfc2e
2
main.go
2
main.go
@ -253,7 +253,7 @@ func handleClientSignal() {
|
||||
log.Fatal("handle stop, ", err.Error())
|
||||
}
|
||||
println("App is trying to shutdown, wait for a minute")
|
||||
for {
|
||||
for i := 0; i < 5; i++ {
|
||||
time.Sleep(time.Second)
|
||||
if _, err := os.Stat(pidFile); errors.Is(err, os.ErrNotExist) {
|
||||
println("Success")
|
||||
|
Loading…
Reference in New Issue
Block a user