'\" t .\" Title: mosquitto_signal .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 04/03/2026 .\" Manual: Commands .\" Source: Mosquitto Project .\" Language: English .\" .TH "MOSQUITTO_SIGNAL" "1" "04/03/2026" "Mosquitto Project" "Commands" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" mosquitto_signal \- a utility for sending signal events to Mosquitto brokers running on the local computer\&. .SH "SYNOPSIS" .HP \w'\fBmosquitto_signal\fR\ 'u \fBmosquitto_signal\fR {\fB\-a\fR | \fB\-p\fR\ \fIpid\fR} \fIsignal\fR .HP \w'\fBmosquitto_signal\fR\ 'u \fBmosquitto_signal\fR \fB\-\-help\fR .SH "DESCRIPTION" .PP \fBmosquitto_signal\fR is a utility that can send named signals to one or all instances of a Mosquitto broker running on the local computer\&. .PP On POSIX like systems, it is a convenient replacement for the \fBkill\fR(1) command, with the added enhancement of being able to use named signals rather than generic system signals like SIGUSR1, and with the ability to signal multiple brokers at once\&. .PP On Windows, it is the only means of sending signals to a broker\&. .SH "OPTIONS" .PP \fB\-a\fR .RS 4 Send the given signal to all processes matching the name \fBmosquitto\fR\&. As with all signal sending, only those processes you have permission to send the signal to will receive the signal\&. .RE .PP \fB\-p\fR \fIpid\fR .RS 4 Send the signal to a specific process id\&. \fBmosquitto_signal\fR will always attempt to send the corresponding signal to the given process and will not check whether it appears to be a mosquitto process\&. .RE .SH "SIGNALS" .PP The following named signals are available for use\&. .PP \fBconfig\-reload\fR .RS 4 Trigger the broker to reload its configuration file, if in use\&. .sp On POSIX like systems this can also be triggered using the \fBSIGHUP\fR signal\&. Note that \fBSIGHUP\fR is used by other named signals\&. .RE .PP \fBlog\-rotate\fR .RS 4 If the broker is using \fBlog_dest file\fR, then this will trigger the broker to close and reopen the log file\&. .sp On POSIX like systems this can also be triggered using the \fBSIGHUP\fR signal\&. Note that \fBSIGHUP\fR is used by other named signals\&. .RE .PP \fBshutdown\fR .RS 4 Trigger the broker to quit\&. .sp On POSIX like systems this can also be triggered using the \fBSIGINT\fR signal\&. .RE .PP \fBtree\-print\fR .RS 4 Trigger the broker to print a representation of the subscription and retain trees to stdout\&. This is intended for debugging purposes only\&. .sp On POSIX like systems this can also be triggered using the \fBSIGUSR2\fR signal\&. Note that \fBSIGUSR2\fR is used by other named signals\&. .RE .PP \fBxtreport\fR .RS 4 Trigger the broker to write some internal state information to \fB/tmp/xtmosquitto\&.kcg\&.\&.\fR on POSIX systems or \fBxtmosquitto\&.kcg\&.\&.\fR on Windows systems\&. This is intended for debugging purposes only\&. .sp This signal is only used by the broker when appropriate support is compiled in, which is not the case by default\&. .sp On POSIX like systems this can also be triggered using the \fBSIGRTMIN\fR signal\&. .RE .SH "BUGS" .PP \fBmosquitto\fR bug information can be found at \m[blue]\fB\%https://github.com/eclipse-mosquitto/mosquitto/issues\fR\m[] .SH "SEE ALSO" \fBmosquitto\fR(7), \fBmosquitto\fR(8) .SH "AUTHOR" .PP Roger Light