Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
[COOK-585] - manage rabbitmq-server service
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Jan 19, 2012
1 parent d99901c commit 6f86a90
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
8 changes: 6 additions & 2 deletions rabbitmq/README.md
Expand Up @@ -63,12 +63,16 @@ It is quite useful as is, but clustering configuration does not currently do the

The rabbitmq::chef recipe was only used for the chef-server cookbook and has been moved to chef-server::rabbitmq.

Changes
=======

* [COOK-585] - manage rabbitmq-server service

License and Author
==================
Author:: Benjamin Black <b@b3k.us>

Author:: Benjamin Black <b@b3k.us>
Author:: Daniel DeLeo <dan@kallistec.com>

Author:: Matt Ray <matt@opscode.com>

Copyright:: 2009-2011 Opscode, Inc
Expand Down
2 changes: 1 addition & 1 deletion rabbitmq/metadata.rb
Expand Up @@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures RabbitMQ server"
version "1.3"
version "1.3.0"
recipe "rabbitmq", "Install and configure RabbitMQ"
recipe "rabbitmq::cluster", "Set up RabbitMQ clustering."
depends "apt", ">= 1.1"
Expand Down
6 changes: 6 additions & 0 deletions rabbitmq/recipes/default.rb
Expand Up @@ -35,6 +35,7 @@
owner "root"
group "root"
mode 0644
notifies :restart, "service[rabbitmq-server]"
end

case node[:platform]
Expand All @@ -58,3 +59,8 @@
action :install
end
end

service "rabbitmq-server" do
stop_command "/usr/sbin/rabbitmqctl stop"
action [:enable, :start]
end

0 comments on commit 6f86a90

Please sign in to comment.