About 50 results
Open links in new tab
  1. How to set environment variable in systemd service?

    93 The answers by Michael and Michał are helpful and answer the original question of how to set an environment variable for a systemd service. However, one common use for environment variables is …

  2. What is the best place to setup system wide environment variables on …

    I just want to setup a system wide environment variable, JAVA_HOME for all users, including root user. Requirements: accessible to normal users accessible to root always loaded, not only for bash (

  3. linux - Environment variables of a running process on Unix ... - Server ...

    Sep 18, 2009 · 251 I need to troubleshoot some problems related to environment variables on a Unix system. On Windows, I can use a tool such as ProcessExplorer to select particular a process and …

  4. linux - crontab execution doesn't have the same environment variables ...

    Approach 3: Save your environment variables to a file (run as the desired user): env > /path/to/my_env.sh Then import via your cron script: env - `cat /path/to/my_env.sh` /bin/sh Approach …

  5. linux - How to use the `$HOME` environment variable in systemd …

    How to use the `$HOME` environment variable in systemd service files Ask Question Asked 9 years, 6 months ago Modified 1 year, 11 months ago

  6. linux - Creating an environment variable for a specific user - Server Fault

    Mar 19, 2014 · When you set an environment variable in linux is it set only for the user who executes it, or can you specify a user when you store it, or instead is it always available for all users?

  7. linux - "service"-command and environment variables - Server Fault

    Explore related questions linux centos redhat service environment-variables See similar questions with these tags.

  8. linux - How to change default /tmp to /home/user/tmp - Server Fault

    Oct 9, 2009 · Is there an environment variable to set the temporary directory on debian based systems? I have a java applet that uses that environement variable and it's getting confused when launching …

  9. linux - Environment variables in systemd ExecStart, ExecStop clauses ...

    Apr 8, 2022 · You can use environment variables, but not as the command name. The "Command lines" section of systemd.service (5) states that Note that the first argument (i.e. the program to execute) …

  10. linux - Environment variables are unavailable when running scripts over ...

    From the man pages of my server: Reads the file ~/.ssh/environment, if it exists, and users are allowed to change their environment. See the PermitUserEnvironment option in sshd_config (5). You need to …