From a0c845b436329624ad33432a701658dc1b52cca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 16 Apr 2019 01:09:08 +0200 Subject: Add missing service dependencies --- nixops/modules/websites/aten/aten.nix | 1 + nixops/modules/websites/aten/default.nix | 2 ++ 2 files changed, 3 insertions(+) (limited to 'nixops/modules/websites/aten') diff --git a/nixops/modules/websites/aten/aten.nix b/nixops/modules/websites/aten/aten.nix index 897b3ba..ac102c9 100644 --- a/nixops/modules/websites/aten/aten.nix +++ b/nixops/modules/websites/aten/aten.nix @@ -4,6 +4,7 @@ let environment = config.environment; varDir = "/var/lib/aten_${environment}"; phpFpm = rec { + serviceDeps = [ "postgresql.service" "${environment}-aten-key.service" ]; socket = "/var/run/phpfpm/aten-${environment}.sock"; pool = '' listen = ${socket} diff --git a/nixops/modules/websites/aten/default.nix b/nixops/modules/websites/aten/default.nix index 776a02e..58228ed 100644 --- a/nixops/modules/websites/aten/default.nix +++ b/nixops/modules/websites/aten/default.nix @@ -41,6 +41,7 @@ in { }; }; + services.myPhpfpm.serviceDependencies.aten_prod = aten_prod.phpFpm.serviceDeps; services.myPhpfpm.poolConfigs.aten_prod = aten_prod.phpFpm.pool; system.activationScripts.aten_prod = aten_prod.activationScript; system.extraSystemBuilderCmds = '' @@ -59,6 +60,7 @@ in { (lib.mkIf cfg.integration.enable { deployment.keys = aten_dev.keys; security.acme.certs."eldiron".extraDomains."dev.aten.pro" = null; + services.myPhpfpm.serviceDependencies.aten_dev = aten_dev.phpFpm.serviceDeps; services.myPhpfpm.poolConfigs.aten_dev = aten_dev.phpFpm.pool; system.activationScripts.aten_dev = aten_dev.activationScript; system.extraSystemBuilderCmds = '' -- cgit v1.2.3