Re: Set environment variable globally

2017-04-06 Thread Andrew Martin
- Original Message - > From: "J Fernyhough" > To: "amartin" > Cc: "ubuntu-devel-discuss" > Sent: Thursday, April 6, 2017 12:42:05 PM > Subject: Re: Set environment variable globally > On 06/04/17 16:36, Andrew Martin wrote: >> &g

Re: Set environment variable globally

2017-04-06 Thread J Fernyhough
On 06/04/17 16:36, Andrew Martin wrote: > > It seems like that would have some performance impact. Setting TZ in the > /etc/environment file doesn't appear to be used by upstart or systemd, and > therefore apache2 doesn't use it either. How can I make it be used for > services > started by either

Re: Set environment variable globally

2017-04-06 Thread Andrew Martin
- Original Message - > From: "J Fernyhough" > To: "ubuntu-devel-discuss" > Sent: Wednesday, April 5, 2017 2:01:26 PM > Subject: Re: Set environment variable globally > On 24/03/17 21:19, Andrew Martin wrote: >> Hello, >> >> I recen

Re: Set environment variable globally

2017-04-05 Thread J Fernyhough
On 24/03/17 21:19, Andrew Martin wrote: > Hello, > > I recently saw this blog post regarding performance when the TZ environment > variable is not set: > https://blog.packagecloud.io/eng/2017/02/21/set-environment-variable-save-thousands-of-system-calls/ > There's also a good deal of discussion

Re: Set environment variable globally

2017-04-05 Thread Gunnar Hjalmarsson
On 2017-04-05 20:30, Andrew Martin wrote: From: "Gérard BIGOT" I added this line in /etc/environment since a long time : TZ="Europe/Paris" It gives me satisfaction. I can't seem to get this to work on 16.04. Which shell are you using? Have you customized your /etc/bash.bashrc or /etc/profi

Re: Set environment variable globally

2017-04-05 Thread Andrew Martin
- Original Message - > From: "Gérard BIGOT" > To: "amartin" > Cc: "ubuntu-devel-discuss" > Sent: Friday, March 31, 2017 8:41:36 AM > Subject: Re: Set environment variable globally > Hi, > > I added this line in /etc/environment si

Re: Set environment variable globally

2017-03-31 Thread Gunnar Hjalmarsson
On 2017-03-24 22:19, Andrew Martin wrote: I recently saw this blog post regarding performance when the TZ environment variable is not set: https://blog.packagecloud.io/eng/2017/02/21/set-environment-variable-save-thousands-of-system-calls/ I have noticed this problem when stracing running daemon

Re: Set environment variable globally

2017-03-31 Thread Gérard BIGOT
Hi, I added this line in /etc/environment since a long time : TZ="Europe/Paris" It gives me satisfaction. With this line, upon reboot, I have : ~$ echo $TZ Europe/Paris Without TZ doesn't exist. G. PS: You don't have to live in Paris for this to work, I guess. It should work with whatever li

Set environment variable globally

2017-03-24 Thread Andrew Martin
Hello, I recently saw this blog post regarding performance when the TZ environment variable is not set: https://blog.packagecloud.io/eng/2017/02/21/set-environment-variable-save-thousands-of-system-calls/ I have noticed this problem when stracing running daemons on my systems and would like to fi