Need help


#1

Hi Team,

I am getting error,

Chef::Exceptions::Exec: /sbin/service httpd restart returned 1, expected 0

When i ran the following code,
service “httpd” do
supports :restart => true, :status => true, :reload => true
action [:enable, :start]
end

Please do the needful help.

Thanks,
Maddy.


#2

This is probably not the right list for your query, but…

In cases like this, I log in to the node in question and run the
error-ing command manually. That’ll tell you what the problem is.

On Mar 8, 2012, at 1:03, "madhuupri@gmail.com" madhuupri@gmail.com wrote:

Hi Team,

I am getting error,

Chef::Exceptions::Exec: /sbin/service httpd restart returned 1, expected 0

When i ran the following code,
service “httpd” do
supports :restart => true, :status => true, :reload => true
action [:enable, :start]
end

Please do the needful help.

Thanks,
Maddy.


#3

Hi Maddy,

The right list for this type of question is chef@lists.opscode.com. This is a list for the chef-developer team to discuss development.

-Jesse

On Mar 8, 2012, at 12:54 AM, madhuupri@gmail.com madhuupri@gmail.com wrote:

Hi Team,

I am getting error,

Chef::Exceptions::Exec: /sbin/service httpd restart returned 1, expected 0

When i ran the following code,
service “httpd” do
supports :restart => true, :status => true, :reload => true
action [:enable, :start]
end

Please do the needful help.

Thanks,
Maddy.