mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
fix(main): add SIGHUP signal handling in context notification
This commit is contained in:
parent
876e58d49b
commit
8bbb2ff559
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue