We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ed0404 commit 271748eCopy full SHA for 271748e
cmd/server.go
@@ -18,6 +18,7 @@ import (
18
"net/http"
19
"os"
20
"os/signal"
21
+ "syscall"
22
"time"
23
24
"github.com/hipages/php-fpm_exporter/phpfpm"
@@ -93,9 +94,9 @@ to quickly create a Cobra application.`,
93
94
}()
95
96
c := make(chan os.Signal, 1)
- // We'll accept graceful shutdowns when quit via SIGINT (Ctrl+C)
97
- // SIGKILL, SIGQUIT or SIGTERM (Ctrl+/) will not be caught.
98
- signal.Notify(c, os.Interrupt)
+ // We'll accept graceful shutdowns when quit via SIGINT (Ctrl+C) or SIGTERM
+ // SIGKILL, SIGQUIT will not be caught.
99
+ signal.Notify(c, os.Interrupt, syscall.SIGTERM)
100
101
// Block until we receive our signal.
102
<-c
0 commit comments