Add hydra-notify service

This commit is contained in:
Eelco Dolstra 2019-08-09 19:26:44 +02:00
parent 2946899504
commit c7861b85c4
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -379,6 +379,21 @@ in
}; };
}; };
systemd.services.hydra-notify =
{ wantedBy = [ "multi-user.target" ];
requires = [ "hydra-init.service" ];
after = [ "hydra-init.service" ];
restartTriggers = [ hydraConf ];
environment = env // {
PGPASSFILE = "${baseDir}/pgpass-queue-runner"; # grrr
};
serviceConfig =
{ ExecStart = "@${cfg.package}/bin/hydra-notify hydra-notify";
# FIXME: run this under a less privileged user?
User = "hydra-queue-runner";
};
};
# If there is less than a certain amount of free disk space, stop # If there is less than a certain amount of free disk space, stop
# the queue/evaluator to prevent builds from failing or aborting. # the queue/evaluator to prevent builds from failing or aborting.
systemd.services.hydra-check-space = systemd.services.hydra-check-space =