# Wait time before killing containers during service upgrades

**URL:** <https://forums.suse.com/t/wait-time-before-killing-containers-during-service-upgrades/1730>\
**Category:** Rancher 1.x\
**Created:** [February 15, 2016, 4:12pm UTC](https://forums.suse.com/t/wait-time-before-killing-containers-during-service-upgrades/1730 "2016-02-15T16:12:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gorg](https://avatars.discourse-cdn.com/v4/letter/g/6de8d8/32.png) [@gorg](https://forums.suse.com/u/gorg)\
**Post date:** [February 15, 2016, 4:12pm UTC](https://forums.suse.com/t/wait-time-before-killing-containers-during-service-upgrades/1730/1 "2016-02-15T16:12:17Z")

</div>

Is there any support for something similar to “docker stop --time=N” for service upgrades? Some of our containers can take more than the default 10 seconds to wrap up and I’d like for the service upgrade to wait a specified time before killing the old container.

Thanks,  
-G

---

<div class="post-metadata">

**Author:** ![etlweather](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/etlweather/32/419_2.png) [@etlweather](https://forums.suse.com/u/etlweather)\
**Post date:** [February 20, 2016, 8:52pm UTC](https://forums.suse.com/t/wait-time-before-killing-containers-during-service-upgrades/1730/2 "2016-02-20T20:52:42Z")

</div>

does this post help you?

> [@Service Upgrade - stops too fast](http://forums.suse.com/t/service-upgrade-stops-too-fast/1458):
>
> I have a service which runs a Java application under Tomcat. The application takes about 30 seconds to start up and actually be available (I wish it was instant but it’s not!) The service is served via a Rancher HAProxy load balancer instance. When I do a service upgrade, I select “start before stop” in the UI because I want my service to remain on-line. However, Rancher stops the old container before the new one is fully started - well the container is started but the Java application isn’t fu…
