# How to stop the daemon after finished using the toolingApi

**URL:** <https://discuss.gradle.org/t/how-to-stop-the-daemon-after-finished-using-the-toolingapi/5126>\
**Category:** Old Forum Archive\
**Created:** [September 4, 2014, 7:47pm UTC](https://discuss.gradle.org/t/how-to-stop-the-daemon-after-finished-using-the-toolingapi/5126 "2014-09-04T19:47:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjtkirk](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@cjtkirk](https://discuss.gradle.org/u/cjtkirk)\
**Post date:** [September 4, 2014, 7:47pm UTC](https://discuss.gradle.org/t/how-to-stop-the-daemon-after-finished-using-the-toolingapi/5126/1 "2014-09-04T19:47:00Z")

</div>

I see the daemon process running after my toolingApi code is finished.

I can stop it from the command line with “gradle --stop”

BUT…can it be stopped with the toolingApi???

---

<div class="post-metadata">

**Author:** ![Radim\_Kubacki](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/radim_kubacki/32/1032_2.png) [@Radim\_Kubacki](https://discuss.gradle.org/u/Radim_Kubacki)\
**Post date:** [September 5, 2014, 6:48am UTC](https://discuss.gradle.org/t/how-to-stop-the-daemon-after-finished-using-the-toolingapi/5126/2 "2014-09-05T06:48:00Z")

</div>

No, there is no support for this in Tooling API. You can tell Gradle to quit soon after your request by passing a system property specifying a short idle timeout. See related thread [http://forums.gradle.org/gradle/topics/extending\_the\_gradle\_daemon\_idle\_timeout](http://forums.gradle.org/gradle/topics/extending_the_gradle_daemon_idle_timeout)

---

<div class="post-metadata">

**Author:** ![cjtkirk](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@cjtkirk](https://discuss.gradle.org/u/cjtkirk)\
**Post date:** [September 5, 2014, 2:07pm UTC](https://discuss.gradle.org/t/how-to-stop-the-daemon-after-finished-using-the-toolingapi/5126/3 "2014-09-05T14:07:00Z")

</div>

Thanks
