Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

f110/ex-go-graceful-restart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

goでgraceful restartなhttpサーバーのサンプル

golangでgraceful restartができるアプリケーションサーバーのサンプル

使い方

1. サーバーを起動する

$ go build server.go
$ gom exec start_server --port=8000 --pid-file=./server.pid -- ./server

2. クライアントを起動する

$ go run client.go

3. graceful restartしてみる

$ kill -HUP $(< server.pid)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages