From 8ea05cc7f2349f18d4188fba9386c39bc30aadf0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 2 Jul 2015 02:54:16 +0200 Subject: [PATCH] Don't require postgresql.service --- hydra-module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hydra-module.nix b/hydra-module.nix index d3f9a660..bda54785 100644 --- a/hydra-module.nix +++ b/hydra-module.nix @@ -203,8 +203,8 @@ in systemd.services.hydra-init = { wantedBy = [ "multi-user.target" ]; - requires = [ "postgresql.service" ]; - after = [ "postgresql.service" ]; + requires = optional haveLocalDB "postgresql.service"; + after = optional haveLocalDB "postgresql.service"; environment = env; preStart = '' mkdir -p ${baseDir}