### Brick MQTT Proxy Autostart

Define the script on the Raspberry Pi using
sudo nano scriptname.sh
Note:
Do not use an editor on Windows. This to avoid DOS or MAC character mismatch.
Make the script executable:
sudo chmod 755 scriptname.sh
Test:
./scripname.sh
Start the script at reboot via crontab.
Edit crontab and add the line:
sudo crontab -e
@reboot sudo /home/pi/tinkerforge/mqtt/scriptname.sh
Example Script
#!/bin/bash
#Script to start TinkerForge MQTT Proxy
cd /home/pi/tinkerforge/mqtt
python brick-mqtt-proxy.py --update-interval 60 &
echo TinkerForge MQTT Proxy started
Crontab direct call brick-mqtt-proxy.py
@reboot python /home/pi/tinkerforge/mqtt/brick-mqtt-proxy.py &

Changed: 2017-12-05 17:19, Category: TinkerForge MQTT, File: T6C266M1974.htm, ID: 1974