Question
How do I enable or disable an extension while broker is running, without having to stop and restart the broker?
Answer
To disable a HiveMQ Extension, locate the extension folder in the extensions directory of your HiveMQ installation and create the file named DISABLED
. In Linux shell you can use the following command to create this (empty) file:
touch DISABLED
Once the HiveMQ broker process notices the file named DISABLED
in the extension folder, it will disable the corresponding extension and log the INFO message about this into the hivemq.log
.
To enable the HiveMQ Extension, locate the extension folder in the extensions directory of your HiveMQ installation and remove the DISABLED
file. In Linux shell you can use the following command to do so:
rm DISABLED
Once the HiveMQ broker process notices that the file named DISABLED is not present in the extension folder, it will enable the corresponding extension and log the INFO message about this into the hivemq.log
.