2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \"
2015-09-09 14:32:52 +02:00
.TH "\FBMYSQL_ZAP\FR" "1" "04/08/2015" "MariaDB 10\&.0" "MariaDB Database System"
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-05-25 11:59:47 +02:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
. \" mysql_zap
2009-05-25 11:59:47 +02:00
.SH "NAME"
mysql_zap \- kill processes that match a pattern
.SH "SYNOPSIS"
2009-09-16 14:03:18 +02:00
.HP \w '\fBmysql_zap\ [\-\fR\fB\fIsignal\fR\fR\fB]\ [\-?Ift]\ \fR \fB \fI pattern\fR\fR\ 'u
2009-05-25 11:59:47 +02:00
\fB mysql_zap [\- \fR \fB \fI signal\fR \fR \fB ] [\- ?Ift] \fR \fB \fI pattern\fR \fR
.SH "DESCRIPTION"
.PP
\fB mysql_zap\fR
2009-09-16 14:03:18 +02:00
kills processes that match a pattern\& . It uses the
2009-05-25 11:59:47 +02:00
\fB ps\fR
2009-09-16 14:03:18 +02:00
command and Unix signals, so it runs on Unix and Unix\- like systems\& .
2009-05-25 11:59:47 +02:00
.PP
Invoke
\fB mysql_zap\fR
like this:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB mysql_zap [\- \fR \fB \fI signal\fR \fR \fB ] [\- ?Ift] \fR \fB \fI pattern\fR \fR
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
A process matches if its output line from the
\fB ps\fR
2009-09-16 14:03:18 +02:00
command contains the pattern\& . By default,
2009-05-25 11:59:47 +02:00
\fB mysql_zap\fR
2009-09-16 14:03:18 +02:00
asks for confirmation for each process\& . Respond
2009-05-25 11:59:47 +02:00
y
to kill the process, or
q
to exit
2009-09-16 14:03:18 +02:00
\fB mysql_zap\fR \& . For any other response,
2009-05-25 11:59:47 +02:00
\fB mysql_zap\fR
2009-09-16 14:03:18 +02:00
does not attempt to kill the process\& .
2009-05-25 11:59:47 +02:00
.PP
If the
\fB \- \fR \fB \fI signal\fR \fR
2009-09-16 14:03:18 +02:00
option is given, it specifies the name or number of the signal to send to each process\& . Otherwise,
2009-05-25 11:59:47 +02:00
\fB mysql_zap\fR
tries first with
TERM
(signal 15) and then with
KILL
2009-09-16 14:03:18 +02:00
(signal 9)\& .
2009-05-25 11:59:47 +02:00
.PP
\fB mysql_zap\fR
2009-09-16 14:03:18 +02:00
supports the following additional options:
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-05-25 11:59:47 +02:00
\fB \- \- help\fR ,
\fB \- ?\fR ,
\fB \- I\fR
.sp
2009-09-16 14:03:18 +02:00
Display a help message and exit\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-05-25 11:59:47 +02:00
\fB \- f\fR
.sp
2009-09-16 14:03:18 +02:00
Force mode\& .
2009-05-25 11:59:47 +02:00
\fB mysql_zap\fR
2009-09-16 14:03:18 +02:00
attempts to kill each process without confirmation\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2009-05-25 11:59:47 +02:00
\fB \- t\fR
.sp
2009-09-16 14:03:18 +02:00
Test mode\& . Display information about each process but do not kill it\& .
.RE
2009-05-25 11:59:47 +02:00
.SH "COPYRIGHT"
2009-09-16 14:03:18 +02:00
.br
2009-05-25 11:59:47 +02:00
.PP
2015-09-09 14:32:52 +02:00
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2015 MariaDB Foundation
2009-05-25 11:59:47 +02:00
.PP
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
.PP
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
.PP
2009-09-16 14:03:18 +02:00
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
.sp
2009-05-25 11:59:47 +02:00
.SH "SEE ALSO"
2015-09-09 14:32:52 +02:00
For more information, please refer to the MariaDB Knowledge Base, available online at https://mariadb.com/kb/
2009-05-25 11:59:47 +02:00
.SH AUTHOR
2015-09-09 14:32:52 +02:00
MariaDB Foundation (http://www.mariadb.org/).