Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Upstart changes not working on Ubuntu 12.04 #19

Closed
arminbauer opened this issue Aug 6, 2012 · 7 comments
Closed

Upstart changes not working on Ubuntu 12.04 #19

arminbauer opened this issue Aug 6, 2012 · 7 comments

Comments

@arminbauer
Copy link

It seems that start_command is missing:

Error executing action start on resource 'service[logstash_agent]'

Chef::Exceptions::Service

Chef::Provider::Service::Upstart:0x00000003c3e260 requires that start_command be set

Resource Declaration:

In /var/cache/chef-client/cookbooks/logstash/recipes/agent.rb

58: end
59: service "logstash_agent" do
60: provider Chef::Provider::Service::Upstart
61: action [ :enable, :start ]
62: end
63: else

Compiled Resource:

Declared in /var/cache/chef-client/cookbooks/logstash/recipes/agent.rb:59:in `from_file'

service("logstash_agent") do
provider Chef::Provider::Service::Upstart
action [:enable, :start]
supports {:restart=>false, :reload=>false, :status=>false}
retries 0
retry_delay 2
service_name "logstash_agent"
pattern "logstash_agent"
startup_type :automatic
cookbook_name "logstash"
recipe_name "agent"
end

Cheers,
Armin

@hectcastro
Copy link
Contributor

Can you please post the contents of your `/etc/init/logstash_agent.conf"?

@arminbauer
Copy link
Author

Shouldnt it be enough to specify something like:

  restart_command "restart logstash_agent"
  stop_command "stop logstash_agent"
  start_command "start logstash_agent"

Unfortunately, I dont have this file available right now since we reverted to an older version of the logstash agent since we need it running at the moment

@hectcastro
Copy link
Contributor

The following line should give you that automatically:

https://github.com/lusis/chef-logstash/blob/master/recipes/agent.rb#L60

@stevendanna
Copy link

I believe this is a bug with the current Chef 10.14.0 release candidate and likely previously released betas as well. It should be fixed here:

http://tickets.opscode.com/browse/CHEF-3410

@lusis
Copy link
Owner

lusis commented Jul 10, 2013

@arminbauer can you confirm this is still an issue?

@sciurus
Copy link
Contributor

sciurus commented Sep 19, 2014

This is definitely working now.

@paulczar
Copy link
Collaborator

Closing out due to inactivity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants