[Linux-HA] 32 / 64 Bit
Andrew Beekhof
beekhof at gmail.com
Tue Feb 5 07:08:24 MST 2008
On Feb 5, 2008, at 2:55 PM, Andreas Mock wrote:
>> -----Ursprüngliche Nachricht-----
>> Von: linux-ha-bounces at lists.linux-ha.org
>> [mailto:linux-ha-bounces at lists.linux-ha.org] Im Auftrag von
>> Dejan Muhamedagic
>> Gesendet: Dienstag, 5. Februar 2008 14:19
>> An: General Linux-HA mailing list
>> Betreff: Re: [Linux-HA] 32 / 64 Bit
>
> Hi Dejan,
>
>
>>> What is the right procedure?
>>
>> To source $OCF_ROOT/resource.d/heartbeat/.ocf-shellfuncs which in
>> turn sources /etc/ha.d/shellfuncs. At the top of the latter shell
>> script there are a bunch of environment variables set. For
>> example:
>>
>> $ grep '^:' /etc/ha.d/shellfuncs
>> : ${HA_DIR:=/etc/ha.d}
>> : ${HA_RCDIR:=$HA_DIR/rc.d}
>> : ${HA_CONFDIR=$HA_DIR/conf}
>> : ${HA_CF:=$HA_DIR/ha.cf}
>> : ${HA_VARLIB:=/var/lib/heartbeat}
>> : ${HA_RSCTMP:=/var/run/heartbeat/rsctmp}
>> : ${HA_FIFO:=/var/lib/heartbeat/fifo}
>> : ${HA_BIN:=/usr/lib/heartbeat}
>> : ${HA_NOARCHBIN:=/usr/share/heartbeat}
>> ...
>
> 1) Does this mean I can rely on $OCF_ROOT being set and on
> $OCF_ROOT/resource.d/heartbeat/.ocf-shellfuncs being a shell snippet
> to
> execute that sets the listed variables?
yes
>
>
> 2) Can I rely on these variables to be set now and in future?
directories... yes
binaries... sometimes (ie. awk vs gawk - yes, but /bin/echo vs. /usr/
bin/echo - no)
> Is it part of the RA api?
yes
> 3) How do I get these environment variables if I need/want to use
> another
> programming language for RA?
most are in hb_config.h
> 4) Who is fiddling with sheebang paths? (Can I assume LSB compliance?)
sheebang?
>
>
> 5) Where do I have to document other dependencies, e.g. certain
> interpreter?
me no comprehendo
More information about the Linux-HA
mailing list