Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Login to the Site Controller terminal (Linux command line) and execute , stop Site Controller and especially mosquitto

    Code Block
    sudo "/opt/azeti/SiteController/run_SiteController.py" stop
  2. Execute the below command. It will extract the mosquitto persistence path from the configuration file and rename it with a backup extension

    Code Block
    sudo awk '/persistence_location/ { db_file=$2"mosquitto.db"; system("mv "db_file" "db_file".bak") }' /etc/mosquitto/mosquitto.conf
  3. Restart Site Controller

    Code Block
    sudo "/opt/azeti/SiteController/run_SiteController.py" restart

...