nixos/logrotate: enable multiple paths per entry#152223
nixos/logrotate: enable multiple paths per entry#152223aanderse merged 2 commits intoNixOS:masterfrom
Conversation
28bc851 to
c83ef26
Compare
|
Because of |
It is a good point... but I think erasing your darlings is so trendy in our community you might get push back on that 😄 Might be worth pulling in some other opinions on that. I mentioned that our distro doesn't use |
|
Even erasing everything on boot doesn't get you close enough when some systems have years of uptime... which is bad in itself because no kernel update yes I agree but they still happen quite a bit of everywhere; I think it's orthogonal really. And if you didn't care that it wasn't here, you likely won't care either that it is here. (I'm the one who brought up wtmp/btmp growing to @ju1m in the first place, thanks for this PR!) To add a second point in favor of on-by-default, if |
aanderse
left a comment
There was a problem hiding this comment.
I think this PR is good to go as it currently is without any further discussion. Once @ryantm approves we can click merge.
I like your idea to enable logrotate by default. This requires more discussion and we shouldn't hang this PR up on that discussion which might take a while...
Should we start a new discussion on discourse, etc... about enabling logrotate by default?
|
Here's some discussion about rotating these tmp files systemd/systemd#8295 |
martinetd
left a comment
There was a problem hiding this comment.
Yes, this is definitely good on its own without enabling by default, let's discuss that elsewhere :)
|
Thanks everyone! |
Motivation for this change
Being able to use multiple paths per entry.
Things done
pathfromstrtoeither str (listOf str), preserve backward-compatibility.ExecStart=directly instead ofscript=.nameoption.sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes