1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-24 08:12:38 +02:00
imgproxy/main.go
2018-10-25 22:26:25 +06:00

25 lines
270 B
Go

package main
import (
"os"
"os/signal"
_ "net/http/pprof"
)
const version = "2.0.2"
type ctxKey string
func main() {
s := startServer()
stop := make(chan os.Signal, 1)
signal.Notify(stop, os.Interrupt, os.Kill)
<-stop
shutdownServer(s)
shutdownVips()
}