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

Process group detection rules based on environment variables

d_sarais
Guide

Hi all! Have you ever set an environment variable to use it in custom process group detection rules?

We have servers that restarts every day and I can't find a solution to set a permanent environment variable on Linux.

Thanks a lot in advance


2 REPLIES 2

sebastian_kryst
DynaMight Leader
DynaMight Leader

Hello,

as I understand, you are adding environment variable in OS and after restart it dissapear? I'm using this option in daily environment configurations. It is working fine.

I think here is proper solution:

https://unix.stackexchange.com/questions/21598/how...

Generally you can alway try to find solution for you os version and distribution. You need permanent solution, not session one 🙂

Sebastian


Julius_Loman
DynaMight Guru
DynaMight Guru

This really depends on how your services are started (shell script, systemd unit file, sysv init script). The best method is to set (export) the variable in the startup script/systemd unit file itself and not setting up the user or system shell profile.


TEMPEST a.s., Slovakia, Dynatrace Master Partner