Thanks a lot Mohamed but there is changes that after enabling/disabling the service, it may go to maintenance state.. how do we check the status of the service and take appropriate action accordingly.
Thanks Afroz On Mar 14, 1:59 am, Mohamed Lrhazi <lrh...@gmail.com> wrote: > 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 <hussainaph...@gmail.com> > 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 puppet-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.