Permalink
Browse files

On Lucid, ensure we only manage mongo via upstart.

  • Loading branch information...
1 parent b6285e1 commit 3a5829cb4a9f85cf4b4ea083fc3160de5cdf9d17 @wfarr wfarr committed Mar 19, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/mongodb.rb
View
@@ -132,13 +132,17 @@ def mongodb(hash = {})
:content => template(File.join(File.dirname(__FILE__), '..', 'templates', 'mongodb.upstart.erb'), binding),
:before => service('mongodb')
+ file '/etc/init.d/mongodb',
+ :ensure => :absent,
+ :before => service('mongodb')
+
service 'mongodb',
:ensure => :running,
:enable => true,
:require => [
package('mongodb'),
file('/etc/mongodb.conf'),
- file('/etc/init/mongodb.conf')
+ file('/etc/init/mongodb.conf'),
]
end
end

0 comments on commit 3a5829c

Please sign in to comment.