-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Unable to write pid file #2659
Comments
As of version 2.0, mosquitto drops down from root to the run-time user before the pid file is created. As far as I know, all you can do is create the pid file in advance and change ownership to mosquitto's run-time user before starting mosquitto. |
I have changed
Now it works. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Linux distribution:
Devuan GNU/Linux 4 (chimaera) x86_64
Init system:
sysvinit
Mosquitto version:
2.0.11
/etc/mosquitto/mosquitto.conf
:When I type
sudo mosquitto -c /etc/mosquitto/mosquitto.conf
it saysUnable to write pid file
and does not start.Apparently it does not have the required permissions to create the
/run/mosquitto
directory. If I create it manually it works, but the directory disappears after reboot.The text was updated successfully, but these errors were encountered: