From b0d6993a6c510a5999b45708cea03d2b87109d14 Mon Sep 17 00:00:00 2001
From: Peter Simons <simons@cryp.to>
Date: Thu, 11 Apr 2013 10:44:45 +0200
Subject: [PATCH] hydra-module.nix: update hydra-check-space for systemd

The "stop" alias is not available to this script when run from cron.
---
 hydra-module.nix | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hydra-module.nix b/hydra-module.nix
index 9f60ec05..16f95102 100644
--- a/hydra-module.nix
+++ b/hydra-module.nix
@@ -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
           '';