# How to stop default/initial started services

**URL:** <https://discuss.circleci.com/t/how-to-stop-default-initial-started-services/3454>\
**Category:** Build Environment\
**Tags:** mysql, docker, circle-yml\
**Created:** [April 19, 2016, 10:48am UTC](https://discuss.circleci.com/t/how-to-stop-default-initial-started-services/3454 "2016-04-19T10:48:19Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![FelicianoTech](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/felicianotech/32/21348_2.png) [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Post date:** [December 21, 2016, 4:58pm UTC](https://discuss.circleci.com/t/how-to-stop-default-initial-started-services/3454/6 "2016-12-21T16:58:53Z")

</div>

Can you try stopping it in the test section? For example:

```auto
test
  pre:
    - sudo service mongodb stop; sleep 5

```

Then start whatever needs that port after that line?

---

_[View the full topic](https://discuss.circleci.com/t/how-to-stop-default-initial-started-services/3454)._
