Skip to content

Commit

Permalink
Update graceful-restart-or-stop.md (#224)
Browse files Browse the repository at this point in the history
Co-authored-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
chxcode and appleboy authored Sep 11, 2023
1 parent 0644aa6 commit bcb6093
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion content/en/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {

// Wait for interrupt signal to gracefully shutdown the server with
// a timeout of 5 seconds.
quit := make(chan os.Signal)
quit := make(chan os.Signal, 1)
// kill (no param) default send syscall.SIGTERM
// kill -2 is syscall.SIGINT
// kill -9 is syscall. SIGKILL but can"t be catch, so don't need add it
Expand Down
2 changes: 1 addition & 1 deletion content/es/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func main() {

// Espera por la señal de interrupción para el apagado controlado del servidor
// con un tiempo de espera de 5 segundos.
quit := make(chan os.Signal)
quit := make(chan os.Signal, 1)
// kill (sin parámetro) envío por defecto de la señal syscanll.SIGTERM
// kill -2 es syscall.SIGINT
// kill -9 es syscall.SIGKILL pero no se puede atrapar, así que no es necesario agregarlo
Expand Down
2 changes: 1 addition & 1 deletion content/fa/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {

// Wait for interrupt signal to gracefully shutdown the server with
// a timeout of 5 seconds.
quit := make(chan os.Signal)
quit := make(chan os.Signal, 1)
// kill (no param) default send syscanll.SIGTERM
// kill -2 is syscall.SIGINT
// kill -9 is syscall. SIGKILL but can"t be catch, so don't need add it
Expand Down
2 changes: 1 addition & 1 deletion content/ja/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func main() {
}()

// シグナル割り込みを待ち、タイムアウト時間が5秒の graceful shutdown をする
quit := make(chan os.Signal)
quit := make(chan os.Signal, 1)
// kill (no param) default send syscanll.SIGTERM
// kill -2 is syscall.SIGINT
// kill -9 is syscall. SIGKILL but can"t be catch, so don't need add it
Expand Down
2 changes: 1 addition & 1 deletion content/ko-kr/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func main() {
}()

// 5초의 타임아웃으로 인해 인터럽트 신호가 서버를 정상종료 할 때까지 기다립니다.
quit := make(chan os.Signal)
quit := make(chan os.Signal, 1)
// kill (파라미터 없음) 기본값으로 syscanll.SIGTERM를 보냅니다
// kill -2 는 syscall.SIGINT를 보냅니다
// kill -9 는 syscall.SIGKILL를 보내지만 캐치할수 없으므로, 추가할 필요가 없습니다.
Expand Down
2 changes: 1 addition & 1 deletion content/pt/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {

// espere pelo sinal de interrupção para parar graciosamente o
// servidor com uma pausa de 5 segundos.
quit := make(chan os.Signal)
quit := make(chan os.Signal, 1)
// "kill" padrão (sem parâmetro) envia "syscanll.SIGTERM"
// "kill -2" é "syscall.SIGINT"
// "kill -9" é "syscall.SIGKILL" mas não pode ser capturado,
Expand Down
2 changes: 1 addition & 1 deletion content/tr/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {

// Wait for interrupt signal to gracefully shutdown the server with
// a timeout of 5 seconds.
quit := make(chan os.Signal)
quit := make(chan os.Signal, 1)
// kill (no param) default send syscanll.SIGTERM
// kill -2 is syscall.SIGINT
// kill -9 is syscall. SIGKILL but can"t be catch, so don't need add it
Expand Down
2 changes: 1 addition & 1 deletion content/zh-cn/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func main() {
}()

// 等待中断信号以优雅地关闭服务器(设置 5 秒的超时时间)
quit := make(chan os.Signal)
quit := make(chan os.Signal, 1)
signal.Notify(quit, os.Interrupt)
<-quit
log.Println("Shutdown Server ...")
Expand Down
2 changes: 1 addition & 1 deletion content/zh-tw/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func main() {

// Wait for interrupt signal to gracefully shutdown the server with
// a timeout of 5 seconds.
quit := make(chan os.Signal)
quit := make(chan os.Signal, 1)
signal.Notify(quit, os.Interrupt)
<-quit
log.Println("Shutdown Server ...")
Expand Down

0 comments on commit bcb6093

Please sign in to comment.