Re: [Puppet Users] restarting the smf services on solaris 10

2012-11-01 Thread smalderma
Sorry, I know this is an old posting, that I'm trying to resurrect. So I have a module for solaris similar to what's described below for the system-log service. Basically when we load a server, system-log is already enabled with a stock /etc/syslog.conf file. Using the openvpn example below,

Re: [Puppet Users] restarting the smf services on solaris 10

2012-03-14 Thread qutic development
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,

Re: [Puppet Users] restarting the smf services on solaris 10

2012-03-13 Thread Mohamed Lrhazi
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 wrote: > Hi, > > Is

[Puppet Users] restarting the smf services on solaris 10

2012-03-13 Thread 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 ad