diff --git a/scripts/mosquitto.conf b/scripts/mosquitto.conf deleted file mode 100644 index 18ac1a8..0000000 --- a/scripts/mosquitto.conf +++ /dev/null @@ -1,3 +0,0 @@ -bind_address 10.42.42.1 -persistence false - diff --git a/start_flash.sh b/start_flash.sh index b4b20d3..7a9db55 100755 --- a/start_flash.sh +++ b/start_flash.sh @@ -40,7 +40,9 @@ $screen_with_log smarthack-wifi.log -S smarthack-wifi -m -d ./setup_ap.sh echo " Starting web server in a screen" $screen_with_log smarthack-web.log -S smarthack-web -m -d ./fake-registration-server.py echo " Starting Mosquitto in a screen" -$screen_with_log smarthack-mqtt.log -S smarthack-mqtt -m -d mosquitto -v -c mosquitto.conf +sudo service mosquitto stop >/dev/null 2>&1 +sudo pkill mosquitto +$screen_with_log smarthack-mqtt.log -S smarthack-mqtt -m -d mosquitto -v echo echo "======================================================" echo