diff --git a/main.go b/main.go index 8cb8559..42e8ec0 100644 --- a/main.go +++ b/main.go @@ -78,6 +78,7 @@ func main() { signal.Notify(interrupt, os.Interrupt, syscall.SIGTERM) stop := make(chan struct{}) go app.RunScheduledTasks(&appLoaded, 100, stop) + <-interrupt log.Println("Interrupt signal received. Shutting down server...")