Re: [Puppet Users] exec type doesn't refresh when onlyif is in use

2012-12-30 Thread Jason Edgecombe
On 12/30/2012 04:30 PM, Ramin K wrote: On 12/30/2012 6:47 AM, Jason Edgecombe wrote: I've thought about that. This is a basically a service, but I can have multiple instances of the process running with different configurations. As I understand, I would need to create a new service script for e

Re: [Puppet Users] exec type doesn't refresh when onlyif is in use

2012-12-30 Thread Ramin K
On 12/30/2012 6:47 AM, Jason Edgecombe wrote: I've thought about that. This is a basically a service, but I can have multiple instances of the process running with different configurations. As I understand, I would need to create a new service script for each instance. Jason We manage many i

Re: [Puppet Users] exec type doesn't refresh when onlyif is in use

2012-12-30 Thread Jason Edgecombe
On 12/30/2012 07:53 AM, Erik Dalén wrote: Wouldn't it be easier to use a service definition with the base provider and supply your start, restart & status commands? On 30 December 2012 03:27, Jason Edgecombe wrote: Hi, I'm having trouble with an exec type. I'm using an exec type to start a

Re: [Puppet Users] exec type doesn't refresh when onlyif is in use

2012-12-30 Thread Erik Dalén
Wouldn't it be easier to use a service definition with the base provider and supply your start, restart & status commands? On 30 December 2012 03:27, Jason Edgecombe wrote: > Hi, > > I'm having trouble with an exec type. I'm using an exec type to start a > buildbot slave. It's a long-running ps

Re: [Puppet Users] exec type doesn't refresh when onlyif is in use

2012-12-29 Thread Jason Edgecombe
Thanks, that worked! On 12/29/2012 09:38 PM, Maarten Thibaut (mthibaut) wrote: Hi, I believe the onlyif "wins" in this case. Splitting it up into two statements would be the right thing to do IMO. It would also be cleaner, since they are in effect two different cases: stopped (and in need o

Re: [Puppet Users] exec type doesn't refresh when onlyif is in use

2012-12-29 Thread Maarten Thibaut (mthibaut)
Hi, I believe the onlyif "wins" in this case. Splitting it up into two statements would be the right thing to do IMO. It would also be cleaner, since they are in effect two different cases: stopped (and in need of starting), and running (but in need of restart). The fact that these both run t