Skip to content

Commit

Permalink
Blocking ordering between non-Windows service stops
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AndrewLipscomb authored Jun 11, 2020
1 parent e936a68 commit 6f4e16a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions manifests/run.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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}":
Expand Down

0 comments on commit 6f4e16a

Please sign in to comment.