Hi Freddie, I experienced something similar with the init service
provider (which the freebsd provider inherits).  In some cases, the
puppet agent seems to attempt to locate the init script before it's
been installed and throws the exception you're seeing ('Could not find
init script') when it fails.  So, it may be a resource ordering issue
but I was able to work around the problem explicitly specifying the
'hasstatus' and 'status' parameters.

So, something like:

service{ zabbix-agent :
   name      => "zabbix_agentd",
   require   => Package['zabbix-agent'],
   ensure    => running,
   hasstatus => true,
   status    => "/path/to/init/script status",
 }

I had similar issues with 'enable' so you might try removing that
while you test.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.

Reply via email to