Issue #16271 has been updated by Gary Larizza.

File servicetest.zip added
Status changed from Unreviewed to Accepted

I've attached a module to test this out.  It worked according to how Clay 
reported it.  

Also, I've done the following in the lib/puppet/provider/service/launchd.rb 
file at around line 233:

<pre>
def restart
  Puppet.debug("A restart has been triggered")
  Puppet.debug("Stopping the service")
  self.stop
  Puppet.debug("Starting the service")
  self.start
end
</pre>

That seemed to work for me - can you guys confirm?  If so, that's a simple fix 
and I can write out some tests.
----------------------------------------
Bug #16271: launchd resources don't refresh/restart
https://projects.puppetlabs.com/issues/16271#change-72160

Author: Clay Caviness
Status: Accepted
Priority: Normal
Assignee: 
Category: OSX
Target version: 
Affected Puppet version: 2.7.18
Keywords: 
Branch: 


I can't actually recall the last time I verified it was working, but it *was* 
at some point in the past.

Currently it's not, though, at least with puppet 2.7.18 on OS X 10.8.1.

Debug output shows a trigger of a refresh, but no execs are ever run:
<pre>
[...]
notice: /Stage[main]//Service[com.apple.mDNSResponder]: Triggered 'refresh' 
from 1 events
debug: /Stage[main]//Service[com.apple.mDNSResponder]: The container 
Class[Main] will propagate my refresh event
debug: /Schedule[weekly]: Skipping device resources because running on a host
debug: /Schedule[puppet]: Skipping device resources because running on a host
debug: Class[Main]: The container Stage[main] will propagate my refresh event
debug: Finishing transaction 2223267580
debug: Storing state
debug: Stored state in 0.29 seconds
notice: Finished catalog run in 15.52 seconds
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to