01 Feb 2019 10:17 AM - last edited on 10 Dec 2021 12:46 PM by MaciejNeumann
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
Solved! Go to Solution.
01 Feb 2019 05:56 PM
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
04 Feb 2019 07:50 AM
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.