diff --git a/modules/consul-service-registry/default.nix b/modules/consul-service-registry/default.nix index 3103da6..5165ec2 100644 --- a/modules/consul-service-registry/default.nix +++ b/modules/consul-service-registry/default.nix @@ -37,7 +37,7 @@ let direct = { serviceConfig = { ExecStartPost = "${consul} services register ${serviceJson}"; - ExecStopPre = "${consul} services deregister ${serviceJson}"; + ExecStopPost = "${consul} services deregister ${serviceJson}"; }; }; external = {