gitlab-org--gitlab-foss/lib/tasks/sidekiq.rake
2017-02-23 09:32:42 -06:00

21 lines
464 B
Ruby

namespace :sidekiq do
desc "GitLab | Stop sidekiq"
task :stop do
system(*%w(bin/background_jobs stop))
end
desc "GitLab | Start sidekiq"
task :start do
system(*%w(bin/background_jobs start))
end
desc 'GitLab | Restart sidekiq'
task :restart do
system(*%w(bin/background_jobs restart))
end
desc "GitLab | Start sidekiq with launchd on Mac OS X"
task :launchd do
system(*%w(bin/background_jobs start_no_deamonize))
end
end