New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditionally support upstart #19
Conversation
Debian doesn't have upstart by default. Can you change this to just Ubuntu and I can accept? Thanks. |
@gmr are you on it please? |
I tried to use this fix with Ubuntu 12.04 and it doesn't work. The problem ist, dass if you install apt-get install couchdb on Ubuntu you can not stop the service. https://issues.apache.org/jira/browse/COUCHDB-1795
works for me |
Thanks @michaelwittig. That bug is slated to be fixed in CouchDB 1.6.0 which should be released very shortly. Once it's avialable can you re-test if this upstart approach works? I'm also still waiting on @gmr to except debian from this PR before merging. ;) |
Ok. CouchDB is 1.0.1 on Ubuntu 12.04 :) I tried to Install Ubuntu 1.5.0 from source (couchdb::source) and the recipe works perfectly. I Just missed
at the beginning of the source recipe |
What worked for us (dragons ahead): chef_gem 'chef-rewind' do
version '0.0.8'
end
require 'chef/rewind'
include_recipe 'couchdb'
rewind 'service[couchdb]' do
stop_command '/etc/init.d/couchdb stop; sleep 1; pkill -U couchdb'
restart_command '/etc/init.d/couchdb stop; sleep 1; pkill -U couchdb; /etc/init.d/couchdb start'
status_command 'pgrep -u couchdb'
supports [:restart, :status]
action [:enable, :start]
end
service 'couchdb' do
action [:enable, :start]
end |
Hey @michaelwittig and @gmr CouchDB 1.6.1 is out - can you please review and work through the issues on this PR? I'm afraid I don't have time to fix it from first principles, but if you can clean up this PR and squash I'm happy to merge. |
No action for 6 months, closing. Please feel free to reopen if you are still having issues with 1.6.1. |
I'm not using Chef or CouchDB anymore, but the change was fairly trivial. |
This cookbook will fail to start CouchDB and exit out on Ubuntu systems (and I assume debian proxy) as the package installs CouchDB with an Upstart init configuration instead of an init.d script.