# Validate services when "--strategy rolling"?

**URL:** <https://discourse.chef.io/t/validate-services-when-strategy-rolling/19159>\
**Category:** Habitat Help\
**Created:** [July 17, 2018, 5:24pm UTC](https://discourse.chef.io/t/validate-services-when-strategy-rolling/19159 "2018-07-17T17:24:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qubitrenegade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/qubitrenegade/32/2978_2.png) [@qubitrenegade](https://discourse.chef.io/u/qubitrenegade)\
**Post date:** [July 17, 2018, 5:24pm UTC](https://discourse.chef.io/t/validate-services-when-strategy-rolling/19159/1 "2018-07-17T17:24:56Z")

</div>

Hello,

Should habitat validate a service is back up before moving on to the next when update strategy is “rolling”?

We just ran into [an issue](https://github.com/habitat-sh/core-plans/issues/1705) where an update to a package was detected, downloaded, and dutifully habitat restarted all of our nodes one at a time… however, due to the change, the service was no longer able to start and is left in a “flapping” state.

`hab svc status` also reports the service as “up”.

Perhaps habitat usually attempts to check if a service is up before moving on to the next node if there’s a service check hook? Maybe if our core/consul plan had a service check hook it would have said “well node 1 didn’t come back, let’s not update the other nodes”?

Fortunately, we’re not in a production lab, so we’re not service impacting… but I could see how if someone was running core/consul in production this could have been a major issue.

Anyway, just thinking out loud.

---

<div class="post-metadata">

**Author:** ![joshb](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/joshb/32/2380_2.png) [@joshb](https://discourse.chef.io/u/joshb)\
**Post date:** [July 17, 2018, 11:08pm UTC](https://discourse.chef.io/t/validate-services-when-strategy-rolling/19159/2 "2018-07-17T23:08:11Z")

</div>

@christophermaier might have some thoughts on this.

---

<div class="post-metadata">

**Author:** ![elliott-davis](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/elliott-davis/32/2146_2.png) [@elliott-davis](https://discourse.chef.io/u/elliott-davis)\
**Post date:** [August 13, 2018, 4:11pm UTC](https://discourse.chef.io/t/validate-services-when-strategy-rolling/19159/3 "2018-08-13T16:11:06Z")

</div>

I think this might sum up the issue [https://github.com/habitat-sh/habitat/issues/5327](https://github.com/habitat-sh/habitat/issues/5327)
