Skip to content

Commit

Permalink
Fix extra path in pidfile setting
Browse files Browse the repository at this point in the history
Don't use var/run twice in the pidfile.

Fixes #374.
  • Loading branch information
martinb3 committed Sep 21, 2015
1 parent ea07871 commit ad97a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/provider_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Provider::ElasticsearchService < Chef::Provider::LWRPBase
converge_by('configure elasticsearch service') do
# pick one if we have been given a path
unless new_resource.pid_file
new_resource.pid_file "#{new_resource.pid_path}/var/run/#{Chef::Config[:node_name].to_s.gsub(/\W/, '_')}.pid"
new_resource.pid_file "#{new_resource.pid_path}/#{Chef::Config[:node_name].to_s.gsub(/\W/, '_')}.pid"
end

d_r = directory new_resource.pid_path do
Expand Down

0 comments on commit ad97a16

Please sign in to comment.