New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run as SystemD Service #20
Comments
Thank you. |
My solution works like a charm:
|
You almost got it right. You can either use WorkingDirectory so systemd changes to that dir and then loads the config no probs, or if you want to use the Environment the you just need to put the export string in the quotes.
Best, |
For me under Ubuntu 20.04 the service start command was hanging until I removed the
|
Hello,
thanks for mqtt-launcher!
I would like to share some knowledge on how I run it as systemd-service:
Now this did not work, and I suspected, it was due to the problem, that the config-file was not found. thus, I hardcoded the config file in the /usr/local/bin/mqtt-launcher.py;
Not sure, this was neccessary though.
Then, the final problem seemed to be, that something (network?) was not ready yet. At least the service worked when launching it a while after boot, but it did not work when running during boot.
Thus, I changed mqtt-launcher.py:
With this, it is working.
Hope, this helps someone, and maybe someone can comment.
Gretings,
Hendrik
The text was updated successfully, but these errors were encountered: