mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Use -P for pidfile flag
This commit is contained in:
parent
0f248f3412
commit
d98617b873
2 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ module Sidekiq
|
||||||
@options[:processor_count] = arg.to_i
|
@options[:processor_count] = arg.to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
o.on '-p', '--pidfile PATH', "path to use" do |arg|
|
o.on '-P', '--pidfile PATH', "path to use" do |arg|
|
||||||
@options[:pidfile] = arg
|
@options[:pidfile] = arg
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -41,7 +41,7 @@ class TestCli < MiniTest::Unit::TestCase
|
||||||
@tmp_path = @tmp_file.path
|
@tmp_path = @tmp_file.path
|
||||||
@tmp_file.close!
|
@tmp_file.close!
|
||||||
File.unlink @tmp_path if File.exist? @tmp_path
|
File.unlink @tmp_path if File.exist? @tmp_path
|
||||||
@cli.parse(['sidekiq', '-p', @tmp_path, '-r', './test/fake_env.rb'])
|
@cli.parse(['sidekiq', '-P', @tmp_path, '-r', './test/fake_env.rb'])
|
||||||
end
|
end
|
||||||
|
|
||||||
after do
|
after do
|
||||||
|
|
Loading…
Add table
Reference in a new issue