Skip to content

Commit

Permalink
Changed the default pid_path attribute to "/usr/local/var/run"
Browse files Browse the repository at this point in the history
On some system, contents of `/var/run` (and possibly `/usr/local/var/run`) is cleared on restart;
http://askubuntu.com/questions/89352/does-ubuntu-periodically-clean-empty-directories-under-var-run.

As discussed in #115 and #108, the solution is to simply ditch the `elasticsearch` prefix,
the PID files are based on node name anyway.

Closes cookbook-elasticsearch#108
Closes cookbook-elasticsearch#115
  • Loading branch information
karmi committed Feb 3, 2014
1 parent 3da158b commit a95a3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attributes/default.rb
Expand Up @@ -33,7 +33,7 @@
default.elasticsearch[:path][:data] = "/usr/local/var/data/elasticsearch"
default.elasticsearch[:path][:logs] = "/usr/local/var/log/elasticsearch"

default.elasticsearch[:pid_path] = "/usr/local/var/run/elasticsearch"
default.elasticsearch[:pid_path] = "/usr/local/var/run"
default.elasticsearch[:pid_file] = "#{node.elasticsearch[:pid_path]}/#{node.elasticsearch[:node][:name].to_s.gsub(/\W/, '_')}.pid"

# === MEMORY
Expand Down

0 comments on commit a95a3f7

Please sign in to comment.