Code: Select all
uname -a
Linux rpi-2b 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l GNU/Linux
Using <<sudo service mosquitto restart>> or stop and start work OK. But a reboot or shutdown and power-on boot, the port 1883 is still in use and I cannot start mosquitto.
I have to use sudo kill -kill <PID> to release the listener job.
What can I do to solve this problem?
Or is there a work around with a delaay in the reboot and/or shutdown?