Maybe you could test setting the start command of that service explicitly to be:
/usr/sbin/svcadm disable myservice && /usr/sbin/svcadm enable myservice http://docs.puppetlabs.com/references/stable/type.html#service Mohamed. On Tue, Mar 13, 2012 at 3:03 PM, Afroz Hussain <[email protected]> wrote: > 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. > -- 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.
