Skip to content

Commit

Permalink
nixos/mesos-slave: start after docker
Browse files Browse the repository at this point in the history
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"

(cherry picked from commit ec00b6f)
  • Loading branch information
xeji committed May 16, 2018
1 parent 345f14e commit ec1ee66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/mesos-slave.nix
Expand Up @@ -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.stdenv.shellPackage ];
serviceConfig = {
ExecStart = ''
Expand Down

0 comments on commit ec1ee66

Please sign in to comment.