This commit is contained in:
parent
5fc6d3a181
commit
74035622f5
@ -58,13 +58,17 @@ func main() {
|
|||||||
indexpage.New(app)
|
indexpage.New(app)
|
||||||
pastes.New(app)
|
pastes.New(app)
|
||||||
|
|
||||||
app.Start()
|
if err := app.Start(); err != nil {
|
||||||
|
app.Log.Fatal().Err(err).Msg("Failed to start Fast Pastebin!")
|
||||||
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
<-signalHandler
|
<-signalHandler
|
||||||
|
|
||||||
if err := app.Shutdown(); err != nil {
|
if err := app.Shutdown(); err != nil {
|
||||||
app.Log.Error().Err(err).Msg("Fast Pastebin failed to shutdown!")
|
app.Log.Error().Err(err).Msg("Fast Pastebin failed to shutdown!")
|
||||||
}
|
}
|
||||||
|
|
||||||
shutdownDone <- true
|
shutdownDone <- true
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user