hydra-module.nix: Remove log compression which is a local policy

This commit is contained in:
Eelco Dolstra 2014-11-12 13:47:55 +01:00
parent eb2965071e
commit 3b93c4721c

View file

@ -275,16 +275,8 @@ in
systemctl stop hydra-evaluator
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
[ "*/5 * * * * root ${checkSpace} &> ${baseDir}/data/checkspace.log"
"15 5 * * * root ${compressLogs} &> ${baseDir}/data/compress.log"
];
};
}