[Pacemaker] how to source a script prior to an RA launch?

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Wed Nov 12 11:52:07 EST 2008


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

in /etc/apache2/apache2.conf, they simply reference:

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

[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