Sha256: 624163ed4b7fe04299c9cc786c44632e15ab4de665c04294a883a8d9fd42405d

Contents?: true

Size: 406 Bytes

Versions: 7

Compression:

Stored size: 406 Bytes

Contents

#!/usr/bin/env ruby

require 'fileutils'
require 'sidekiq/api'
require 'sidekiq/ctl'

if ARGV[0] == 'status'
  Sidekiq::Ctl::Status.new.display(ARGV[1])
else
  if ARGV.length < 2
    Sidekiq::Ctl.print_usage
  else
    stage = ARGV[0]
    pidfile = ARGV[1]
    timeout = ARGV[2].to_i
    timeout = Sidekiq::Ctl::DEFAULT_KILL_TIMEOUT if timeout == 0

    Sidekiq::Ctl.new(stage, pidfile, timeout)
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
sidekiq-5.2.10 bin/sidekiqctl
sidekiq-5.2.9 bin/sidekiqctl
sidekiq-5.2.8 bin/sidekiqctl
sidekiq_cleaner-5.3.8 bin/sidekiqctl
sidekiq_cleaner-5.3.6 bin/sidekiqctl
sidekiq-5.2.7 bin/sidekiqctl
sidekiq-5.2.6 bin/sidekiqctl