fix(main): add SIGHUP signal handling in context notification

This commit is contained in:
Jacky
2025-05-05 11:02:29 +00:00
parent 876e58d49b
commit 8bbb2ff559
+1 -1
View File
@@ -103,7 +103,7 @@ func main() {
confPath := appCmd.String("config")
settings.Init(confPath)
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM)
defer cancel()
err := risefront.New(ctx, risefront.Config{