vendored/puppet/lib/puppet/provider/service/smf.rb in bolt-0.10.0 vs vendored/puppet/lib/puppet/provider/service/smf.rb in bolt-0.11.0
- old
+ new
@@ -105,9 +105,11 @@
super
self.wait('online')
end
def stop
+ # Don't try to stop non-existing services (PUP-8167)
+ return if self.status == :absent
# Wait for the service to actually stop before returning.
super
self.wait('offline', 'disabled', 'uninitialized')
end