Skip to content

Commit

Permalink
Merge pull request #1 from elricsilverhandx/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
nepeat authored Jul 27, 2023
2 parents 8a245bb + 298baba commit d722ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def start
def ensure_directories
%w{lib run log}.each do |dir|
path = "/var/#{dir}/#{service_name}"
Dir.mkdir(path) unless Dir.exists?(path)
Dir.mkdir(path) unless Dir.exist?(path)
end
end

Expand All @@ -45,7 +45,7 @@ def executable

def stop
$logger.info "stopping #{service_name} on port #{port_socks}/#{port_http} [SOCKS/HTTP]"
if File.exists?(pid_file)
if File.exist?(pid_file)
pid = File.read(pid_file).strip
begin
self.class.kill(pid.to_i)
Expand Down

0 comments on commit d722ce3

Please sign in to comment.