Restart an activegate without systemctl

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
   20/04 18:09:14 (1.213.142.20210329-162333) This script cannot be launched directly.
   20/04 18:09:14 (1.213.142.20210329-162333) Use the appropriate systemctl command: ‘systemctl start|stop|status dynatracegateway’
   20/04 18:09:14 (1.213.142.20210329-162333)

Is there any workaround ?

Thanks for your help.

Abder

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.

LIke @Julius_Loman says, you would have to set up and use sudo to allow certain user(s) run specific commands: Run only Specific Commands with sudo in Linux - kifarunix.com

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