opscode/chef — pull request #1477 by MarkGibbons (2014-06-09 15:57:42+00:00)
Title: CHEF-5347: Allow for undefined solaris services in the service resource.

I have a use case where I'm trying to stop a service that may not be defined on a Solaris server. Up until roughly chef-client 11.12 using the service resource to stop a service worked even if the service was not defined. I'd like to update the call "shell_out! svcs -l" to "shell_out svcs -l". This command doesn't change the state of the server and I don't see a need for it to fail. The calls "shell_out! svcadm" that do change the server state will continue to fail if chef actually tries to change the service.

Coding around the change in behavior requires duplicating a bunch of code that is already the service provider and just seems messy.

Thanks,
Mark