[Pacemaker] Upstart resources

Jake Smith jsmith at argotec.com
Wed Feb 22 19:40:48 UTC 2012


----- Original Message -----
> From: "Ante Karamatic" <ivoks at ubuntu.com>
> To: pacemaker at oss.clusterlabs.org
> Sent: Wednesday, February 22, 2012 1:01:35 PM
> Subject: Re: [Pacemaker] Upstart resources
> 
> On 21.02.2012 17:56, Jake Smith wrote:
> 
> > Np thanks for adding - I was asking because the exit codes on the
> > upstart jobs I'm using didn't align (I believe) with the LSB spec
> > and
> > I wasn't sure if they were supposed to.  Haven't really seen the
> > level of documentation (as LSB resource) for upstart resources.  I
> > would assume since they are Ubuntu specific.  Mine seems to be
> > working OK so far but haven't stressed it yet.
> 
> Upstart always returns exit code 0. That's the reason why we couldn't
> just use LSB RA for upstart jobs. As for documentation, it's really
> like
> using LSB, just type in 'upstart' instead of 'lsb.
> 
> Example (ssh):
> 
> ssh upstart job is defined by /etc/init/ssh.conf. So, your primitive
> in
> cluster would start as:
> 
> primitive ssh upstart:ssh \
> 	op ... \
> 	meta ... \
> 
> Note that you might have LSB scripts still, like apache
> (/etc/init.d/apache2). Those are not upstart jobs, so you just define
> those as LSB:
> 
> primitive apache2 lsb:apache2 \
> 	op ... \
> 	meta ... \
> 

I'm using both right now and they work fine (Ubuntu 10.04 LTS). I only asked the question initially because I have encountered a few LSB resources that I had to fix the init scripts to be LSB compliant and behave nicely with Pacemaker.  My interest was to verify that the upstart resources were compliant and I wouldn't have issues there.

> Let me know if you have any other questions.

Nope - Thanks!

Jake

> 
> Best regards
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started:
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
> 
> 




More information about the Pacemaker mailing list