# Disabling oneagent on Linux

**URL:** <https://community.dynatrace.com/t/disabling-oneagent-on-linux/36666>\
**Category:** Open Q&A\
**Tags:** oneagent\
**Created:** [September 27, 2022, 4:53am UTC](https://community.dynatrace.com/t/disabling-oneagent-on-linux/36666 "2022-09-27T04:53:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssamraj](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@ssamraj](https://community.dynatrace.com/u/ssamraj)\
**Post date:** [September 27, 2022, 4:53am UTC](https://community.dynatrace.com/t/disabling-oneagent-on-linux/36666/1 "2022-09-27T04:53:33Z")

</div>

Could someone let us know what’s the right way to disable Oneagent on Linux servers during server reboots? We need to have this service in a stopped state always and we can start it back based on the need.

thanks in advance.

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [September 27, 2022, 6:48am UTC](https://community.dynatrace.com/t/disabling-oneagent-on-linux/36666/2 "2022-09-27T06:48:00Z")

</div>

This is what you’re looking for:&nbsp;[Stop/restart OneAgent on Linux — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/stop-restart-oneagent-linux#stop-oneagent-using-the-command-line)&nbsp;?

---

<div class="post-metadata">

**Author:** ![ssamraj](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@ssamraj](https://community.dynatrace.com/u/ssamraj)\
**Post date:** [September 27, 2022, 8:32am UTC](https://community.dynatrace.com/t/disabling-oneagent-on-linux/36666/3 "2022-09-27T08:32:12Z")

</div>

Thank you. I have made use of below to disable it.

systemctl disable oneagent
