Add a unit for hydra-send-stats

This commit is contained in:
Eelco Dolstra 2015-06-26 15:24:12 +02:00
parent 17924ce012
commit 401f5bdce2
2 changed files with 16 additions and 5 deletions

View file

@ -186,7 +186,7 @@ in
build-compress-log = false
'';
systemd.services."hydra-init" =
systemd.services.hydra-init =
{ wantedBy = [ "multi-user.target" ];
requires = [ "postgresql.service" ];
after = [ "postgresql.service" ];
@ -210,7 +210,7 @@ in
serviceConfig.RemainAfterExit = true;
};
systemd.services."hydra-server" =
systemd.services.hydra-server =
{ wantedBy = [ "multi-user.target" ];
requires = [ "hydra-init.service" ];
after = [ "hydra-init.service" ];
@ -225,7 +225,7 @@ in
};
};
systemd.services."hydra-queue-runner" =
systemd.services.hydra-queue-runner =
{ wantedBy = [ "multi-user.target" ];
requires = [ "hydra-init.service" ];
after = [ "hydra-init.service" "network.target" ];
@ -239,7 +239,7 @@ in
};
};
systemd.services."hydra-evaluator" =
systemd.services.hydra-evaluator =
{ wantedBy = [ "multi-user.target" ];
requires = [ "hydra-init.service" ];
after = [ "hydra-init.service" "network.target" ];
@ -252,7 +252,7 @@ in
};
};
systemd.services."hydra-update-gc-roots" =
systemd.services.hydra-update-gc-roots =
{ requires = [ "hydra-init.service" ];
after = [ "hydra-init.service" ];
environment = env;
@ -263,6 +263,16 @@ in
startAt = "02:15";
};
systemd.services.hydra-send-stats =
{ wantedBy = [ "multi-user.target" ];
after = [ "hydra-init.service" ];
environment = env;
serviceConfig =
{ ExecStart = "@${cfg.package}/bin/hydra-send-stats hydra-send-stats";
User = "hydra";
};
};
services.cron.systemCronJobs =
let
# If there is less than ... GiB of free disk space, stop the queue

View file

@ -10,6 +10,7 @@ distributable_scripts = \
hydra-s3-backup-collect-garbage \
hydra-create-user \
hydra-notify \
hydra-send-stats \
nix-prefetch-git \
nix-prefetch-bzr \
nix-prefetch-hg