No. Sudo doesn't pass envvars through to its children by default:
https://stackoverflow.com/questions/8633461/how-to-keep-environment-variables-when-using-sudo
Read that page *and* the comments - in particular be aware that you have to
request (at the CLI) that sudo preserve envvars, and you also
actually, looking at this now I realize my sudo is messing it up. I need
to set the env variables for the su environment. Yeah it works now.
Thanks for helping me get to that conclusion.
On Sat, Jul 21, 2018 at 10:31 AM jdtommy wrote:
> would this chain of calls not work?
>
> ubuntu@ip-172-
would this chain of calls not work?
ubuntu@ip-172-31-30-4:~$ export GRAPH_ADDRESS=graph.server.com
ubuntu@ip-172-31-30-4:~$ export GRAPH_PORT=8182
ubuntu@ip-172-31-30-4:~$ sudo haproxy -d -V -f /etc/haproxy/haproxy.cfg
On Sat, Jul 21, 2018 at 3:26 AM Igor Cicimov
wrote:
> On Sat, Jul 21, 2018 a
On Sat, Jul 21, 2018 at 7:12 PM, Jonathan Matthews
wrote:
> On Sat, 21 Jul 2018 at 09:12, jdtommy wrote:
>
>> I am setting them before I start haproxy in the terminal. I tried both
>> starting it as a service and starting directly, but neither worked. It
>> still would not forward it along.
>>
>
On Sat, 21 Jul 2018 at 09:12, jdtommy wrote:
> I am setting them before I start haproxy in the terminal. I tried both
> starting it as a service and starting directly, but neither worked. It
> still would not forward it along.
>
Make sure that, as well as setting them, you're *exporting* the env
I am setting them before I start haproxy in the terminal. I tried both
starting it as a service and starting directly, but neither worked. It
still would not forward it along.
On Sat, Jul 21, 2018, 2:06 AM Igor Cicimov
wrote:
>
>
> On Sat, Jul 21, 2018 at 4:49 PM, jdtommy wrote:
>
>> here is my
On Sat, Jul 21, 2018 at 4:49 PM, jdtommy wrote:
> here is my simple `listen` section of the haproxy config file:
>
> listen graph_front
>bind *:8182
>mode tcp
>server graph_server graph.server.com:8182
>
> this works just fine, but I need the address and port to be a e
7 matches
Mail list logo