hydra-module.nix: update hydra-check-space for systemd

The "stop" alias is not available to this script when run from cron.
This commit is contained in:
Peter Simons 2013-04-11 10:44:45 +02:00
parent 9f027b22b1
commit b0d6993a6c

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
'';