diff --git a/pkg/snapshot/tracker.go b/pkg/snapshot/tracker.go index 4ff7634..8f7d643 100644 --- a/pkg/snapshot/tracker.go +++ b/pkg/snapshot/tracker.go @@ -53,7 +53,7 @@ func newTracker(file string, buf int) iteratorTracker { func (tr *iteratorTracker) captureSignal() { sigChan := make(chan os.Signal, 1) - signal.Notify(sigChan, syscall.SIGINT) + signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM) go func() { sig := <-sigChan log.Errorf("Signal received (%v), stopping", sig)