- From: Michael Murphy <
>
- To:
- Subject: [chef] Re: starting service
- Date: Mon, 12 Dec 2011 15:34:30 -0500
On Mon, Dec 12, 2011 at 2:30 PM,
<
>
wrote:
>
I have this error
>
>
[Mon, 12 Dec 2011 12:24:01 -0700] ERROR:
>
Chef::Exceptions::UnsupportedAction: service[portmap] (apol_db::nfs line 27)
>
had an error: #<Chef::Provider::Service::Init:0x2b0d03852420> does not
>
support :enable
>
>
my line 27 is
>
>
>
service "portmap" do
>
action [ :enable, :start ]
>
end
>
>
>
what am I missing?
What's your os? You appear to be ending up trying to use the default
provider for service, which is just "Init".
Looking here:
https://github.com/opscode/chef/blob/master/chef/lib/chef/provider/service/init.rb
It appears that the init provider doesn't do ":enable". If the package
has already deposited your start script in /etc/init.d (or wheverver)
you may may be able to safely just :start it without the :enable.
Mike
Archive powered by MHonArc 2.6.16.