Merge pull request #84 from peti/update-hydra-check-space-for-systemd

hydra-module.nix: update hydra-check-space for systemd
This commit is contained in:
Rob Vermaas 2013-04-11 03:45:31 -07:00
commit 4b517488d0

View file

@ -218,10 +218,10 @@ in
''
#! ${pkgs.stdenv.shell}
if [ $(($(stat -f -c '%a' /nix/store) * $(stat -f -c '%S' /nix/store))) -lt $((${toString cfg.minimumDiskFree} * 1024**3)) ]; then
stop hydra_queue_runner
systemctl stop hydra-queue-runner
fi
if [ $(($(stat -f -c '%a' /nix/store) * $(stat -f -c '%S' /nix/store))) -lt $((${toString cfg.minimumDiskFreeEvaluator} * 1024**3)) ]; then
stop hydra_evaluator
systemctl stop hydra-evaluator
fi
'';