From 6f4e16a8e0fcaa7d1062daa07ab349e62438c099 Mon Sep 17 00:00:00 2001 From: Andrew Lipscomb Date: Thu, 11 Jun 2020 05:19:11 +0000 Subject: [PATCH] Blocking ordering between non-Windows service stops Windows based services stopping will block until the docker container stops (ie: if docker::run::stop_wait_time has been set to !=0) service based stops do not - this adds that dependency in so that containers are not attempted to be removed until the service has stopped --- manifests/run.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/run.pp b/manifests/run.pp index 2c9ac32d..0b05b85e 100644 --- a/manifests/run.pp +++ b/manifests/run.pp @@ -493,6 +493,7 @@ enable => false, hasstatus => $hasstatus, provider => $service_provider_real, + notify => Exec["remove container ${service_prefix}${sanitised_title}"], } } exec { "remove container ${service_prefix}${sanitised_title}":