forked from lix-project/hydra
hydra-module.nix: Remove log compression which is a local policy
This commit is contained in:
parent
eb2965071e
commit
3b93c4721c
|
@ -275,16 +275,8 @@ in
|
||||||
systemctl stop hydra-evaluator
|
systemctl stop hydra-evaluator
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
compressLogs = pkgs.writeScript "compress-logs" ''
|
|
||||||
#! ${pkgs.stdenv.shell} -e
|
|
||||||
find /nix/var/log/nix/drvs \
|
|
||||||
-type f -a ! -newermt 'last month' \
|
|
||||||
-name '*.drv' -exec bzip2 -v {} +
|
|
||||||
'';
|
|
||||||
in
|
in
|
||||||
[ "*/5 * * * * root ${checkSpace} &> ${baseDir}/data/checkspace.log"
|
[ "*/5 * * * * root ${checkSpace} &> ${baseDir}/data/checkspace.log"
|
||||||
"15 5 * * * root ${compressLogs} &> ${baseDir}/data/compress.log"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue