# Restart an activegate without systemctl

**URL:** <https://community.dynatrace.com/t/restart-an-activegate-without-systemctl/31194>\
**Category:** Open Q&A\
**Tags:** linux, activegate, dynatrace-saas\
**Created:** [April 20, 2021, 4:23pm UTC](https://community.dynatrace.com/t/restart-an-activegate-without-systemctl/31194 "2021-04-20T16:23:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abder](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@abder](https://community.dynatrace.com/u/abder)\
**Post date:** [April 20, 2021, 4:23pm UTC](https://community.dynatrace.com/t/restart-an-activegate-without-systemctl/31194/1 "2021-04-20T16:23:49Z")

</div>

Hi guys

Is-it possible to restart the activegate service without root access, using a script executed by a dynatrace user for example ?

I tried this but no luck :

# /home/dynatrace/product/dynatrace/gateway/dynatracegateway start  
&nbsp; &nbsp;20/04 18:09:14 (1.213.142.20210329-162333) This script cannot be launched directly.  
&nbsp; &nbsp;20/04 18:09:14 (1.213.142.20210329-162333) Use the appropriate systemctl command: ‘systemctl start|stop|status dynatracegateway’  
&nbsp; &nbsp;20/04 18:09:14 (1.213.142.20210329-162333)

Is there any workaround ?

Thanks for your help.

Abder

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [April 20, 2021, 8:16pm UTC](https://community.dynatrace.com/t/restart-an-activegate-without-systemctl/31194/2 "2021-04-20T20:16:36Z")

</div>

I don’t think there is - you would have to open up shell for the dtuserag.

We use sudo for the individual systemctl commands (start/stop/restart) at customers.

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [April 21, 2021, 9:46pm UTC](https://community.dynatrace.com/t/restart-an-activegate-without-systemctl/31194/3 "2021-04-21T21:46:27Z")

</div>

LIke&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;says, you would have to set up and use sudo to allow certain user(s) run specific commands:&nbsp;[Run only Specific Commands with sudo in Linux - kifarunix.com](https://kifarunix.com/run-only-specific-commands-with-sudo-in-linux/)

---

<div class="post-metadata">

**Author:** ![abder](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@abder](https://community.dynatrace.com/u/abder)\
**Post date:** [April 22, 2021, 8:09am UTC](https://community.dynatrace.com/t/restart-an-activegate-without-systemctl/31194/4 "2021-04-22T08:09:46Z")

</div>

ok I will use the sudo way. Thanks guys for your help !
