Skip to content
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

Make root user & group configurable #2

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

oscarcarlsson
Copy link

Useful on systems where the root users default group is wheel instead of root.

Oscar Carlsson and others added 5 commits October 23, 2021 23:34
Mosquitto 2.x defaults to writing a pid file in (/var)/run/mosquitto,
but that folder doesn't exist after boot and Mosquitto can't create
the folder due to permissions of the parent folder.

This change just creates (as root) the necessary folders.

I've also added a few variables for the systemd unit file due to
reasons.
I also removed the upstart task, partly as it made no sense but mostly
since upstart is deprecated.
First commit on SourceHut.
This will eliminate a bug where the task would fail if a new systemd
service file had been installed but systemd hadn't been reloaded
yet. The new service file contains a fix for creating the parent
directory the pid file will be written to.
To fix the following error message:

Warning: File /etc/mosquitto/dhparam.pem has world readable
permissions. Future versions will refuse to load this file.  To fix
this, use `chmod 0700 /etc/mosquitto/dhparam.pem`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant