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