Optimize mysql logrotate
This commit is contained in:
parent
4fbf1a0f6c
commit
988182e974
|
@ -106,7 +106,7 @@
|
|||
users.users.daniels = {
|
||||
isNormalUser = true;
|
||||
description = "Daniel Siepmann";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = [ "networkmanager" "wheel" "mysql" ];
|
||||
packages = with pkgs; [
|
||||
i3lock
|
||||
xsel
|
||||
|
|
|
@ -130,7 +130,7 @@ in {
|
|||
files = mysqlLogFile;
|
||||
su = "${config.services.mysql.user} ${config.services.mysql.user}";
|
||||
frequency = "daily";
|
||||
rotate = 28;
|
||||
rotate = 2;
|
||||
sharedscripts = true;
|
||||
compress = true;
|
||||
delaycompress = true;
|
||||
|
|
Loading…
Reference in a new issue