Set environment variable globally
gerard.bigot at gmail.com
Fri Mar 31 13:41:36 UTC 2017
I added this line in /etc/environment since a long time :
It gives me satisfaction.
With this line, upon reboot, I have :
~$ echo $TZ
Without TZ doesn't exist.
PS: You don't have to live in Paris for this to work, I guess.
It should work with whatever lines in 'timedatectl list-timezones'
2017-03-24 22:19 GMT+01:00 Andrew Martin <amartin at xes-inc.com>:
> I recently saw this blog post regarding performance when the TZ environment
> variable is not set:
> I have noticed this problem when stracing running daemons on my systems and
> would like to fix it. I reviewed the official Ubuntu documentation for
> where to
> define environment variables:
> I tried defining TZ in /etc/environment and in /etc/profile.d/test.sh, but
> cannot get this environment variable to be available in all cases (e.g. if
> just execute bash without --login or if I run the sample c program
> provided in
> the above article). How can I make the TZ environment variable defined
> completely system-wide?
> Ubuntu-devel-discuss mailing list
> Ubuntu-devel-discuss at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ubuntu-devel-discuss