Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix sidekiqctl pidfile issues, fixes #1490

  • Loading branch information...
commit efb624cc2f6500d2c1de718a01c87489f9744e98 1 parent 72c3fe9
@mperham authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/sidekiqctl
View
4 bin/sidekiqctl
@@ -12,7 +12,7 @@ class Sidekiqctl
@timeout = timeout
done('No pidfile given', :error) if !pidfile
- done("Pidfile #{pidfile} does not exist", :error) if !File.exist?(pidfile)
+ done("Pidfile #{pidfile} does not exist", :warn) if !File.exist?(pidfile)
done('Invalid pidfile content', :error) if pid == 0
fetch_process
@@ -40,7 +40,7 @@ class Sidekiqctl
end
def pid
- File.read(pidfile).to_i
+ @pid ||= File.read(pidfile).to_i
end
def quiet
Please sign in to comment.
Something went wrong with that request. Please try again.