[Pacemaker] how to source a script prior to an RA launch?
Raoul Bhatia [IPAX]
r.bhatia at ipax.at
Wed Nov 12 16:52:07 UTC 2008
hi,
is it possible to source or execute a script prior to launching into
a resource agent?
background: in debian lenny, the introduced /etc/apache2/envvars
which sets some common options like APACHE_RUN_USER, APACHE_RUN_GROUP
and APACHE_PID_FILE.
in /etc/apache2/apache2.conf, they simply reference:
> PidFile ${APACHE_PID_FILE}
> User ${APACHE_RUN_USER}
> Group ${APACHE_RUN_GROUP}
they did this on purpose to prepare for allowing/starting multiple
instances of apache2. quoting [1] :
> Then /etc/apache2/envvars would contain per instance settings
> and /etc/default/apache2 would contain global settings.
so, is there any way to source or even execute a script and/or set some
special environment variables just before launching an resource agent?
e.g. APACHE_PID_FILE=/var/run/apache2.pid OCF_..... \
/usr/lib/ocf/resource.d/heartbeat/apache start
cheers,
raoul
[1] http://bugs.debian.org/489957
--
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc. email. r.bhatia at ipax.at
Technischer Leiter
IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at
Barawitzkagasse 10/2/2/11 email. office at ipax.at
1190 Wien tel. +43 1 3670030
FN 277995t HG Wien fax. +43 1 3670030 15
____________________________________________________________________
More information about the Pacemaker
mailing list