diff --git a/bin/sidekiqctl b/bin/sidekiqctl index d80f7522..26268ac9 100755 --- a/bin/sidekiqctl +++ b/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