mosquitto how to reload conf file

Asked by zeng

in the ubuntu, the mosquitto after updated the mosquitto.conf, how to reload conf avoid restart mosquitto?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
zeng
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If the file in /etc/init.d has a "reload" option (and I'm assuming mosquito is a service) then you can use that to simply make the service reread it's configuration files and not stop.

Revision history for this message
zeng (9036178-h) said :
#2

from the man mosquitto, I have found a solution:
send a signal (hup==sighup) to the mosquitto pid:
it is work fine, and the log file print: config is reloaded.
===================================
ps -e | grep mosquitto | awk '{print $1}' | xargs kill -hup