Thanks, It helps me a lot to solve my issue.

On Mar 14, 12:04 pm, qutic development <[email protected]> wrote:
> Why would you like to do this? With the following service provider (as a 
> sample) openvpn would be restarted if the service is in a maintenance state 
> (if possible) or disabled. Or do I miss your point?
>
> service { 'openvpn':
>     ensure    => running,
>     provider  => smf,
>     enable    => true,
>     require   => File['/var/svc/manifest/application/network/openvpn.xml'],
>     subscribe => File['/etc/openvpn/server.conf'],
>     manifest  => '/var/svc/manifest/application/network/openvpn.xml',
>
> }
>
> HTH.
>
> Am 13.03.2012 um 20:03 schrieb Afroz Hussain:
>
>
>
>
>
>
>
> > Hi,
>
> > Is there any way to restart a service based on the status of the
> > service using Puppet service resource? I want to check the status of
> > the service first then disable it , and make sure that the service has
> > disable successfully then start the service.
>
> > Any help will be appreciated.
>
> > Thanks in advance
> > Afroz Hussain

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to