mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-10-22 15:32:34 +00:00
Gracefully exit audit-server on SIGINT
This commit is contained in:
+4
-1
@@ -720,7 +720,10 @@ func Main(versionInfo string) {
|
||||
logc.Fatalln(ctx, err)
|
||||
}
|
||||
|
||||
serve(ctx, listen(ctx, "audit", *auditServer), ObserveHTTPHandler(processor))
|
||||
go serve(ctx, listen(ctx, "audit", *auditServer), ObserveHTTPHandler(processor))
|
||||
|
||||
sys.WaitForInterrupt()
|
||||
logc.Println(ctx, "audit: exiting")
|
||||
|
||||
case *auditExpire != "":
|
||||
days, err := strconv.ParseInt(*auditExpire, 10, 0)
|
||||
|
||||
Reference in New Issue
Block a user