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

    92 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. linux - Environment variables of a running process on Unix ... - Server ...

    Sep 18, 2009 · 250 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 …

  3. 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?

  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 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 …

  6. How to use variables in a systemd service file? - Server Fault

    Aug 13, 2017 · I'm creating a service file for a daemon, and I would like to use variables (in init scripts I used environment variables) to define some parameters for the executed scripts. For example, I …

  7. 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 (

  8. 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, 4 months ago Modified 1 year, 9 months ago

  9. proxy - How do I set http_proxy and https_proxy with the username …

    Jun 17, 2022 · 4 I know it is pretty straightforward to use/export http_proxy and https_proxy in any Linux variant but, when it becomes tricky if we want to use with authentication like below, I have test this it …

  10. 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) …