diff --git a/encryption-rotation/main.go b/encryption-rotation/main.go index 6934046666..a2a731abba 100644 --- a/encryption-rotation/main.go +++ b/encryption-rotation/main.go @@ -21,7 +21,9 @@ import ( "log" "os" "os/exec" + "os/signal" "strings" + "syscall" "github.com/Percona-Lab/kingpin" "github.com/pkg/errors" @@ -33,6 +35,8 @@ import ( ) func main() { + signal.Ignore(syscall.SIGINT, syscall.SIGTERM) // to prevent any interuptions during process + sqlDB, dbName := openDB() defer sqlDB.Close() //nolint:errcheck