Last active
November 15, 2020 02:13
-
-
Save m0nochr0me/3ba2419c528d3a2b7e2fbab2a3556c09 to your computer and use it in GitHub Desktop.
mqtt-desktop-agent unit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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