MOSQUITTO_SIGNAL(1)
π MOSQUITTO_SIGNAL π
okay bestie, so the manual page is literally called MOSQUITTO_SIGNAL(1) and it lives in the Commands section, and today we're gonna make it make sense. it's a whole tool for yeeting signal events at Mosquitto brokers on your local machine. no cap. π«Ά
β¨ NAME β¨
mosquitto_signal β a utility for sending signal events to Mosquitto brokers running on the local computer. that's it, that's the vibe. π
πΈ SYNOPSIS πΈ
mosquitto_signal {-a | -p pid} signal
mosquitto_signal --help
like, you either go -a for everyone or -p pid for one specific guy, and then you name your signal. or you just cry for --help, which honestly? valid. π
π¦ DESCRIPTION π¦
mosquitto_signal is a utility that can send named signals to one or all instances of a Mosquitto broker running on the local computer. main character energy: it can slide into a single broker's DMs or address the whole group chat. π
On POSIX like systems, it's a convenient replacement for the kill(1) command, bestie β with the added enhancement that you get to use named signals instead of generic system signals like SIGUSR1, plus the ability to signal multiple brokers at once. it's giving glow-up. β¨
On Windows, it is the only means of sending signals to a broker. literally the only one. no backup plan. π
π OPTIONS π
-aβ send the given signal to all processes matching the namemosquitto. and bestie, listen: as with all signal sending, only those processes you actually have permission to send the signal to will receive the signal. permissions said no β, nothing happens. π-p pidβ send the signal to a specific process id. heads up though:mosquitto_signalwill always attempt to send the corresponding signal to the given process and will not check whether it appears to be a mosquitto process. so likeβ¦ you can absolutely aim it at something random. it won't stop you. it's not your mom. π
β SIGNALS β
the following named signals are available for use. let's go through the roster π§
π config-reload
trigger the broker to reload its configuration file, if in use. refresh, reload, rebrand π
on POSIX like systems this can also be triggered using the SIGHUP signal. note that SIGHUP is used by other named signals too β she's a busy girl, okay? shared signal, shared responsibility. π
π log-rotate
if the broker is using log_dest file, then this will trigger the broker to close and reopen the log file. out with the old log, in with the fresh new one. iconic behavior honestly. β¨
on POSIX like systems this can also be triggered using the SIGHUP signal. note that SIGHUP is used by other named signals too. yes, again. she gets around. π
π₯ shutdown
trigger the broker to quit. goodbye, farewell, exit stage left. π
on POSIX like systems this can also be triggered using the SIGINT signal. (that's the same vibe as smashing Ctrl+C, iykyk.)
π¦ tree-print
trigger the broker to print a representation of the subscription and retain trees to stdout. stress on intended for debugging purposes only β this is a behind-the-scenes peek, not a whole production feature, bestie. π
on POSIX like systems this can also be triggered using the SIGUSR2 signal. note that SIGUSR2 is used by other named signals too. (sensing a pattern yet? π)
π xtreport
trigger the broker to write some internal state information to /tmp/xtmosquitto.kcg.<pid>.<iteration> on POSIX systems, or xtmosquitto.kcg.<pid>.<iteration> on Windows systems. note the Windows one has no /tmp β she's built different. this is intended for debugging purposes only.
this signal is only used by the broker when appropriate support is compiled in, which is not the case by default. so if nothing happens, it's not you, it's the build config. π
on POSIX like systems this can also be triggered using the SIGRTMIN signal.
π BUGS π
mosquitto bug information can be found at https://github.com/eclipse-mosquitto/mosquitto/issues β go report it, they're lovely, and also it's how stuff gets fixed. π«Ά
π SEE ALSO π
mosquitto(7), mosquitto(8) β go read those, they're the whole ecosystem, and you're gonna want the context. and not me saying "context" like a teacher, like actually useful context. π
πΈ AUTHOR πΈ
Roger Light <roger@atchoo.org> β the whole legend responsible for this. give him flowers. π
okay that's the whole page!! mwah π β brought to you by the Mosquitto Project, version dated 02/09/2026. go signal some brokers responsibly, bestie. π¦β¨π
π¦ where this page comes from
- alpine 3.24: mosquitto-doc 2.1.2-r1 Β· EPL-1.0 OR EPL-2.0
- fedora 44: mosquitto 2.1.2-1.fc44 Β· EPL-2.0
- fedora 44: mosquitto 2.1.2-1.fc44 Β· EPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms