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
mosquitto: 1.6.2 -> 1.6.3 #36865
mosquitto: 1.6.2 -> 1.6.3 #36865
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both changes should be backported to 18.03 as well.
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; | ||
PIDFile = "/run/mosquitto/pid"; | ||
PrivateTmp = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it put into /tmp
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it does put anything there but it's one of those "just to be on the safe side" things. In any case, with DynamicUser = true;
this is set anyway.
# http://www.eclipse.org/legal/epl-v10.html (free software, copyleft) | ||
license = stdenv.lib.licenses.epl10; | ||
license = licenses.epl10; | ||
maintainer = with maintainers; [ peterhoeg ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maintainers =
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Type = "forking"; | ||
User = "mosquitto"; | ||
Group = "mosquitto"; | ||
DynamicUser = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right with the new systemd it automatically chown everything on start.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed.
|
||
for d in lib lib/cpp src ; do | ||
substituteInPlace $d/CMakeLists.txt \ | ||
--replace /sbin/ldconfig ldconfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh man, why does debian still no put /sbin
in the user's PATH. This is just broken.
Do we need updates to the release notes due to a config option being removed as well as no longer using a system defined user? |
I think removing |
I think the bigger problem would be, if someone has changed |
They also need to have enabled persistence which is off by default for it to be a problem. How has stuff like this been handled in the past? |
Release notes and maybe |
This isn't going to make it into 19.03 but I will get it cleaned up. |
Sorry about the branch reuse - that screwed things up. |
Motivation for this change
mosquitto provides very helpful logging which was nowhere to be found when not run in the foreground so let's run it in the foreground.
Also ~~~update it from 1.4.14 to 1.4.15 and~~~ build it with cmake on all platforms and quote the password so we can accept one with spaces.
I really want to add some tests for this but I haven't done that yet.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)