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
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D

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{