debian-mirror-gitlab/lib/tasks/sidekiq.rake

22 lines
460 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
namespace :sidekiq do
2015-09-11 14:41:01 +05:30
desc "GitLab | Stop sidekiq"
2014-09-02 18:07:02 +05:30
task :stop do
system *%W(bin/background_jobs stop)
end
2015-09-11 14:41:01 +05:30
desc "GitLab | Start sidekiq"
2014-09-02 18:07:02 +05:30
task :start do
system *%W(bin/background_jobs start)
end
desc 'GitLab | Restart sidekiq'
task :restart do
system *%W(bin/background_jobs restart)
end
2015-09-11 14:41:01 +05:30
desc "GitLab | Start sidekiq with launchd on Mac OS X"
2014-09-02 18:07:02 +05:30
task :launchd do
system *%W(bin/background_jobs start_no_deamonize)
end
end