Skip to content

Commit

Permalink
Merge pull request #11 from gouketsu/fix-rc.d-set
Browse files Browse the repository at this point in the history
Fix rc.d set
  • Loading branch information
jbdamiano committed Nov 6, 2014
2 parents a0a7802 + ac3d147 commit 430866a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
license "Apache"
description "Installs and configures elasticsearch"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.markdown'))
version "0.3.12"
version "0.3.13"

depends 'ark', '>= 0.2.4'

Expand Down
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
end
service "elasticsearch" do
supports :status => true, :restart => true
action [ :nothing ]
action [ :enable ]
end
else
template "/etc/init.d/elasticsearch" do
Expand Down
2 changes: 1 addition & 1 deletion templates/default/elasticsearch.init.erb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ stop() {
while [ $(ps -p $pid | wc -l ) -gt '1' ]; do
echo -n '.'
(( timeout ++))
if [ $timeout -gt '30' ]; then return 1; fi
if [ $timeout -gt '60' ]; then return 1; fi
sleep 1
done

Expand Down

0 comments on commit 430866a

Please sign in to comment.