mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-06-19 07:36:59 +00:00
fix(main): add SIGHUP signal handling in context notification
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user