From e45ee59801f8c9f6a5e1057b05d28c7646d48d67 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Mon, 30 Aug 2021 14:05:15 +0200 Subject: [PATCH] mysql: script "mysql-queries-killer.sh" to kill MySQL queries --- CHANGELOG.md | 1 + mysql/files/mysql-queries-killer.sh | 168 ++++++++++++++++++++++++++++ mysql/tasks/utils.yml | 9 ++ 3 files changed, 178 insertions(+) create mode 100644 mysql/files/mysql-queries-killer.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index 31ef9b18..890631f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ The **patch** part changes incrementally at each release. * listupgrade: crontab is configurable * mongodb: create munin plugins directory if missing * mysql: script "mysql_connections" to display a compact list of connections +* mysql: script "mysql-queries-killer.sh" to kill MySQL queries * nagios-nrpe + evolinux-users: new checks for bkctld * redis: instance service for Debian 11 diff --git a/mysql/files/mysql-queries-killer.sh b/mysql/files/mysql-queries-killer.sh new file mode 100644 index 00000000..203d992e --- /dev/null +++ b/mysql/files/mysql-queries-killer.sh @@ -0,0 +1,168 @@ +#!/bin/sh + +VERSION="21.07.1" + +show_version() { + cat <, + Jérémy Lecour + and others. + +mysql-queries-killer comes with ABSOLUTELY NO WARRANTY. This is free software, +and you are welcome to redistribute it under certain conditions. +See the GNU General Public Licence for details. +END +} + +show_help() { + cat <] --list [--time