cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Restart an activegate without systemctl

abder
Visitor

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

 

3 REPLIES 3

Julius_Loman
DynaMight Legend
DynaMight Legend

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.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

fstekelenburg
DynaMight Pro
DynaMight Pro

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 

Kind regards, Frans Stekelenburg                 Certified Dynatrace Associate | measure.works, Dynatrace Partner

abder
Visitor

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

Featured Posts