hydra-module: Don't assume hydra is running on localhost.

In the long run we should add retry logic to hydra-init...
This commit is contained in:
Shea Levy 2015-05-29 12:16:04 -04:00
parent a91cbefda0
commit bc36c7ddd0

View file

@ -186,8 +186,6 @@ in
systemd.services."hydra-init" =
{ wantedBy = [ "multi-user.target" ];
requires = [ "postgresql.service" ];
after = [ "postgresql.service" ];
environment = env;
preStart = ''
mkdir -m 0700 -p ${baseDir}/data
@ -206,7 +204,10 @@ in
serviceConfig.User = "hydra";
serviceConfig.Type = "oneshot";
serviceConfig.RemainAfterExit = true;
};
} // (optionalAttrs (cfg.dbi == "dbi:Pg:dbname=hydra;user=hydra;") {
requires = [ "postgresql.service" ];
after = [ "postgresql.service" ];
});
systemd.services."hydra-server" =
{ wantedBy = [ "multi-user.target" ];