-
Notifications
You must be signed in to change notification settings - Fork 184
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
systemd configuration does not work #566
Comments
Hi, it looks like you are using With kind regards, |
Hi again, did you also provision the With kind regards, |
If I enable without sudo it simply doesn't ask for a password before enabling the service. I have the mqttwarn.ini file in: But I think this is not a problem, as as you can see when I run the application it starts up manually.
Is it possible that the error is in the "ExecStart =" configuration? |
Hi again,
The GNU Bash manual tells us that:
Maybe this bit helps?
Yeah, but then it would be invoked as user With kind regards, |
I tried to activate the service by switching to the root user but the effect is the same:
I also tried to modify mqttwarn.service by changing user and group to "pi", then the error code changes to (code = exited, status = 2)
I also noticed strange behavior with the export MQTTWARN INI = command Changing the file location works but only until you restart. When I restart my device and then try to start mqttwarn manually I get an error.
After trying to start the service, the contents of mqttwarn.log looks like this:
I will just add that I previously added the homebridge service to the systemctl by of the following guide and there we managed to start the service without any problem. https://pysselilivet.blogspot.com/2017/01/homebridge-autostart-with-systemd.html I think there must be a mistake somewhere in this manual. https://github.com/jpmens/mqttwarn/blob/main/etc/mqttwarn.service |
That is intended. The effect of the
Indeed, that's a very good trace. You may be able to fix the problem by adjusting the file permissions, like:
|
Those errors indicate that the permissions on the file are wrong; try a |
We're seeing commands entered on the shell and some FTP popups; I cannot help you this way. Please stick to working with the command line as I've no idea what your FTP thing is actually showing you. |
Hi again, I also think manipulating the filesystem through FTP or such might be the reason for the hiccups you are observing. Can you try a clean install, using a terminal / the command line only? With kind regards, |
I did the mqttwarn setup on a Raspberry Pi. When I run it manually everything works but i have a problem with systemd.
Steps I took:
cd /usr/lib/systemd/system sudo nano mqttwarn.service
As you can see, an error appears and the service does not start. Does anyone know where the problem is?
The text was updated successfully, but these errors were encountered: