author | Alberto Bertogli
<albertito@blitiri.com.ar> 2025-08-03 16:45:58 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2025-08-03 16:56:43 UTC |
parent | a9c1f88bd97a433c3451a3573901193f9cc205d4 |
chasquid.go | +5 | -1 |
diff --git a/chasquid.go b/chasquid.go index a9bef08..18040e2 100644 --- a/chasquid.go +++ b/chasquid.go @@ -247,7 +247,11 @@ func signalHandler(dinfo *domaininfo.DB, srv *smtpsrv.Server) { // Also trigger a server reload. srv.Reload() case syscall.SIGTERM, syscall.SIGINT: - log.Fatalf("Got signal to exit: %v", sig) + log.Infof("Got signal to exit: %v", sig) + // Ideally, we would shutdown the server gracefully, but for now + // we just exit. Note that in practice this is not a significant + // problem, as any in-flight transaction should be retried. + os.Exit(0) default: log.Errorf("Unexpected signal %v", sig) }