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

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Nov 12 13:40:05 EST 2008


Hi,

On Wed, Nov 12, 2008 at 05:52:07PM +0100, Raoul Bhatia [IPAX] wrote:
> 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

envvars biz is supported in apache as of Sep 25th. Take a look at
the meta-data:

<parameter name="envfiles">

Thanks,

Dejan


> 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
> ____________________________________________________________________
> 
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at clusterlabs.org
> http://list.clusterlabs.org/mailman/listinfo/pacemaker




More information about the Pacemaker mailing list