Disabling oneagent on Linux

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.

This is what you’re looking for: Stop/restart OneAgent on Linux — Dynatrace Docs ?

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

systemctl disable oneagent