From ec00b6fbb3669e1852f537a8b624c6102f3eeb32 Mon Sep 17 00:00:00 2001 From: Uli Baum Date: Fri, 11 May 2018 19:29:33 +0200 Subject: [PATCH] nixos/mesos-slave: start after docker If docker is enabled, start mesos-slave.service after docker.service to avoid a race condition that could result in mesos-slave to fail with "Failed to create docker: Timed out getting docker version" --- nixos/modules/services/misc/mesos-slave.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/mesos-slave.nix b/nixos/modules/services/misc/mesos-slave.nix index effa29b64f63..468c7f36ecc5 100644 --- a/nixos/modules/services/misc/mesos-slave.nix +++ b/nixos/modules/services/misc/mesos-slave.nix @@ -187,7 +187,7 @@ in { systemd.services.mesos-slave = { description = "Mesos Slave"; wantedBy = [ "multi-user.target" ]; - after = [ "network.target" ]; + after = [ "network.target" ] ++ optionals cfg.withDocker [ "docker.service" ] ; path = [ pkgs.runtimeShellPackage ]; serviceConfig = { ExecStart = ''