On Thu, Apr 14, 2011 at 08:46:39AM +0200, Tom Schmitt wrote:
> I tried the two workarounds described above. First I created a file 
> /usr/sbin/approx_start with the following content:
> 
> #!/bin/sh
>       export http_proxy=http://DOMAIN\\username:[email protected]:8080/
>       exec /usr/sbin/approx
> 
> And modified the line in /etc/inetd.conf to:
> 
> 9999            stream  tcp     nowait  approx  /usr/sbin/approx_start 
> /usr/sbin/approx_start
> 
> After this I restarted inetd.

Did you make the approx_start file executable?

> I also tried the other workaround and entered the line
>  export http_proxy=http://DOMAIN\\username:[email protected]:8080/
> in a file /etc/default/openbsd-inetd and restartet the inetd, but no change 
> at all.

openbsd-inetd does not pass all its environment variables to the
programs it starts, so this won't work unless you pass the "-E"
option, by adding
    OPTIONS="-E"
to /etc/default/openbsd-inetd and restarting it.

> Any suggestions?

Please also try the second workaround in the FAQ (using the "env" command):

9999 stream tcp nowait approx /usr/bin/env /usr/bin/env 
http_proxy=http://DOMAIN\\username:[email protected]:8080/ /usr/sbin/approx

-- 
Eric Cooper             e c c @ c m u . e d u



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to