Skip to content

Instantly share code, notes, and snippets.

@m0nochr0me
Last active November 15, 2020 02:13
Show Gist options
  • Save m0nochr0me/3ba2419c528d3a2b7e2fbab2a3556c09 to your computer and use it in GitHub Desktop.
Save m0nochr0me/3ba2419c528d3a2b7e2fbab2a3556c09 to your computer and use it in GitHub Desktop.
mqtt-desktop-agent unit
[Unit]
Description=MQTT Desktop Agent
[Service]
ExecStartPre=/bin/sh -c 'until ping -c1 google.com; do sleep 1; done;'
ExecStart=python /home/yourusername/bin/mqtt-desktop-agent/mqtt-desktop-agent.py
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment