Permalink
Browse files

try to start service when link is written

  • Loading branch information...
till committed Mar 7, 2012
1 parent bbf97ee commit 127374c3888d038a9531aca2407e481ac04236e0
Showing with 5 additions and 5 deletions.
  1. +5 −5 apache-solr/recipes/default.rb
@@ -1,4 +1,5 @@
include_recipe "apache-solr::prepare"
+include_recipe "apache-solr::service"
apache_solr_version = node[:apache_solr][:version]
apache_solr_release = "apache-solr-#{apache_solr_version}.zip"
@@ -21,9 +22,8 @@
end
link "#{base_dir}/apache-solr" do
- owner node[:apache_solr][:user]
- group node[:apache_solr][:group]
- to "#{base_dir}/apache-solr-#{apache_solr_version}"
+ owner node[:apache_solr][:user]
+ group node[:apache_solr][:group]
+ to "#{base_dir}/apache-solr-#{apache_solr_version}"
+ notifies :start, "service[apache-solr]"
end
-
-include_recipe "apache-solr::service"

0 comments on commit 127374c

Please sign in to comment.