-
Notifications
You must be signed in to change notification settings - Fork 5
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
oscarcarlsson
wants to merge
15
commits into
lnovara:master
Choose a base branch
from
oscarcarlsson:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Useful on systems where the root users default group is wheel instead of root.