You better use another tool for this that will "provision" your process.
There are many examples for this:

http://smarden.org/runit/
http://upstart.ubuntu.com/cookbook/
http://mmonit.com/monit/

maybe more. I am currently using upstart and it is maybe one of the
easiest to setup and integrates with the puppet service type

-- 
Nikola

On Fri, Nov 01, 2013 at 08:41:43AM -0700, Yasha Zislin wrote:
> Hello,
> 
> I have multiple instances of a service running on linux server. This 
> service has status, restart, start and stop init scripts.
> One of the instances keeps dying for unknown reasons (probably network 
> related).
> I have puppet configured to monitor the service but it doesnt consider it 
> to be down when one of the instances dies.
> 
> Is there a way to configure puppet to initiate restart when one of the 
> instances dies? 
> 
> Here is my current config
> 
> class myApp::service {
>   service { "myService":
>     ensure     => running,
>     hasstatus  => true,
>     hasrestart => true,
>     enable     => true,
>   }
> }
> 
> Thanks.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/5de0eace-4117-4ac1-8cd2-23e6efc17237%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/20131101164046.GE28337%40nikolavp-desktop.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to