1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-03-27 20:30:27 +02:00
imgproxy/main.go

25 lines
270 B
Go
Raw Normal View History

2017-06-20 16:58:55 +03:00
package main
import (
2017-10-17 18:23:48 +06:00
"os"
"os/signal"
2018-10-05 21:17:36 +06:00
_ "net/http/pprof"
2017-06-20 16:58:55 +03:00
)
2018-10-05 01:39:39 +06:00
const version = "2.0.0"
2018-10-05 21:17:36 +06:00
type ctxKey string
2017-06-20 16:58:55 +03:00
func main() {
2018-09-10 12:17:00 +06:00
s := startServer()
2017-06-20 16:58:55 +03:00
2017-10-17 18:23:48 +06:00
stop := make(chan os.Signal, 1)
signal.Notify(stop, os.Interrupt, os.Kill)
2017-06-20 16:58:55 +03:00
2017-10-17 18:23:48 +06:00
<-stop
shutdownServer(s)
2018-09-10 12:17:00 +06:00
shutdownVips()
2017-06-20 16:58:55 +03:00
}