Skip to content

Commit 8dc7536

Browse files
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
1 parent 9c3d7a8 commit 8dc7536

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

manifests/run.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@
493493
enable => false,
494494
hasstatus => $hasstatus,
495495
provider => $service_provider_real,
496+
notify => Exec["remove container ${service_prefix}${sanitised_title}"],
496497
}
497498
}
498499
exec { "remove container ${service_prefix}${sanitised_title}":

0 commit comments

Comments
 (0)