[asterisk-users] Can't read environment variable
Steve Edwards
asterisk.org at sedwards.com
Wed Jan 30 08:25:21 CST 2008
On Wed, 30 Jan 2008, Joost Kuif | Mobillion wrote:
> This pointed me into the right direction, thanks Tzafrir!
>
> i added a export HOSTNAME=$HOSTNAME into my .bash_profile
>
> Grtz,
> Joost
I explicitly pass it to Asterisk in this snippet from my
/etc/init.d/asterisk file.
daemon\
env -i\
HOST=$HOST\
PATH=/usr/local/bin/:/bin/\
nice --adjustment=-20\
$ASTERISK $START_OPTIONS
Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list