Services can now write to pidfiles
This commit is contained in:
@@ -11,7 +11,7 @@ type Server struct {
|
||||
Handler http.Handler
|
||||
}
|
||||
|
||||
func (server *Server) ListenAndServe () error {
|
||||
func (server *Server) Run () error {
|
||||
server.underlying = &http.Server {
|
||||
Addr: fmt.Sprint(":", server.Config.HTTPSPort()),
|
||||
// ReadHeaderTimeout: timeoutReadHeader * time.Second,
|
||||
@@ -26,6 +26,6 @@ func (server *Server) ListenAndServe () error {
|
||||
return server.underlying.ListenAndServeTLS("", "")
|
||||
}
|
||||
|
||||
func (server *Server) Close () error {
|
||||
func (server *Server) Shutdown () error {
|
||||
return server.underlying.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user