Need help.. Urgent!

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.

It means that it failed to restart the httpd server. Probably just some
configuration error...

On Thu, Mar 8, 2012 at 2:54 AM, 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.

--
Daniel S. Kim

If you restart it from the CLI do you get an error?

Thanks,
Matt Ray
Senior Technical Evangelist | Opscode Inc.
matt@opscode.com | (512) 731-2218
Twitter, IRC, GitHub: mattray

On Thu, Mar 8, 2012 at 9:25 AM, Daniel S. Kim ksw2599@gmail.com wrote:

It means that it failed to restart the httpd server. Probably just some
configuration error...

On Thu, Mar 8, 2012 at 2:54 AM, 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.

--
Daniel S. Kim