We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e7df5c commit 1f7d4f3Copy full SHA for 1f7d4f3
cmd/opampsupervisor/main.go
@@ -9,6 +9,7 @@ import (
9
"log"
10
"os"
11
"os/signal"
12
+ "syscall"
13
14
"github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor"
15
"github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/config"
@@ -46,7 +47,7 @@ func runInteractive() error {
46
47
}
48
49
interrupt := make(chan os.Signal, 1)
- signal.Notify(interrupt, os.Interrupt)
50
+ signal.Notify(interrupt, os.Interrupt, syscall.SIGTERM)
51
<-interrupt
52
supervisor.Shutdown()
53
0 commit comments