Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Unit]
Description=GTM Stack - Mosquitto Script
After=network.target
[Service]
ExecStart=/usr/bin/python3 -u sensor_data_to_mosquitto.py \
--host ${MOSQUITTO_HOST} --port ${MOSQUITTO_PORT} --topic ${MOSQUITTO_TOPIC}
WorkingDirectory=/home/pi/iot-analytics-at-the-edge
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment