Created
September 18, 2018 20:29
-
-
Save rcuza/bb9b58ceaac8a6ed14f2e17a5eab5be5 to your computer and use it in GitHub Desktop.
What system files use /etc/environment?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@ubuntu-bionic:~$ sudo grep -lR "/etc/environment" /etc/* | |
/etc/init.d/cron | |
/etc/init.d/lxd | |
/etc/pam.d/cron | |
/etc/pam.d/login | |
/etc/pam.d/su | |
/etc/pam.d/sshd | |
/etc/rc0.d/K01lxd | |
/etc/rc1.d/K01lxd | |
/etc/rc2.d/S01lxd | |
/etc/rc2.d/S01cron | |
/etc/rc3.d/S01lxd | |
/etc/rc3.d/S01cron | |
/etc/rc4.d/S01lxd | |
/etc/rc4.d/S01cron | |
/etc/rc5.d/S01lxd | |
/etc/rc5.d/S01cron | |
/etc/rc6.d/K01lxd | |
/etc/systemd/system/multi-user.target.wants/snapd.service | |
vagrant@ubuntu-bionic:~$ sudo grep -R "/etc/environment" /etc/* | |
/etc/init.d/cron:# We read /etc/environment, but warn about locale information in | |
/etc/init.d/cron: for ENV_FILE in /etc/environment /etc/default/locale; do | |
/etc/init.d/cron: if [ -n "$value" ] && [ "$ENV_FILE" = /etc/environment ]; then | |
/etc/init.d/cron: log_warning_msg "/etc/environment has been deprecated for locale information; use /etc/default/locale for $var=$value instead" | |
/etc/init.d/lxd: [ -e /etc/environment ] && . /etc/environment | |
/etc/pam.d/cron:# Read environment variables from pam_env's default files, /etc/environment | |
/etc/pam.d/login:# parsing /etc/environment needs "readenv=1" | |
/etc/pam.d/login:# reading this file *in addition to /etc/environment* does not hurt | |
/etc/pam.d/su:# parsing /etc/environment needs "readenv=1" | |
/etc/pam.d/su:# reading this file *in addition to /etc/environment* does not hurt | |
/etc/pam.d/sshd:# Read environment variables from /etc/environment and | |
/etc/rc0.d/K01lxd: [ -e /etc/environment ] && . /etc/environment | |
/etc/rc1.d/K01lxd: [ -e /etc/environment ] && . /etc/environment | |
/etc/rc2.d/S01lxd: [ -e /etc/environment ] && . /etc/environment | |
/etc/rc2.d/S01cron:# We read /etc/environment, but warn about locale information in | |
/etc/rc2.d/S01cron: for ENV_FILE in /etc/environment /etc/default/locale; do | |
/etc/rc2.d/S01cron: if [ -n "$value" ] && [ "$ENV_FILE" = /etc/environment ]; then | |
/etc/rc2.d/S01cron: log_warning_msg "/etc/environment has been deprecated for locale information; use /etc/default/locale for $var=$value instead" | |
/etc/rc3.d/S01lxd: [ -e /etc/environment ] && . /etc/environment | |
/etc/rc3.d/S01cron:# We read /etc/environment, but warn about locale information in | |
/etc/rc3.d/S01cron: for ENV_FILE in /etc/environment /etc/default/locale; do | |
/etc/rc3.d/S01cron: if [ -n "$value" ] && [ "$ENV_FILE" = /etc/environment ]; then | |
/etc/rc3.d/S01cron: log_warning_msg "/etc/environment has been deprecated for locale information; use /etc/default/locale for $var=$value instead" | |
/etc/rc4.d/S01lxd: [ -e /etc/environment ] && . /etc/environment | |
/etc/rc4.d/S01cron:# We read /etc/environment, but warn about locale information in | |
/etc/rc4.d/S01cron: for ENV_FILE in /etc/environment /etc/default/locale; do | |
/etc/rc4.d/S01cron: if [ -n "$value" ] && [ "$ENV_FILE" = /etc/environment ]; then | |
/etc/rc4.d/S01cron: log_warning_msg "/etc/environment has been deprecated for locale information; use /etc/default/locale for $var=$value instead" | |
/etc/rc5.d/S01lxd: [ -e /etc/environment ] && . /etc/environment | |
/etc/rc5.d/S01cron:# We read /etc/environment, but warn about locale information in | |
/etc/rc5.d/S01cron: for ENV_FILE in /etc/environment /etc/default/locale; do | |
/etc/rc5.d/S01cron: if [ -n "$value" ] && [ "$ENV_FILE" = /etc/environment ]; then | |
/etc/rc5.d/S01cron: log_warning_msg "/etc/environment has been deprecated for locale information; use /etc/default/locale for $var=$value instead" | |
/etc/rc6.d/K01lxd: [ -e /etc/environment ] && . /etc/environment | |
/etc/systemd/system/multi-user.target.wants/snapd.service:EnvironmentFile=-/etc/environment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment