2013-01-09 00:44:05 -05:00
|
|
|
namespace :sidekiq do
|
2015-06-23 10:52:40 -04:00
|
|
|
desc "GitLab | Stop sidekiq"
|
2013-01-09 00:44:05 -05:00
|
|
|
task :stop do
|
2014-05-27 11:14:41 -04:00
|
|
|
system *%W(bin/background_jobs stop)
|
2013-01-09 00:44:05 -05:00
|
|
|
end
|
|
|
|
|
2015-06-23 10:52:40 -04:00
|
|
|
desc "GitLab | Start sidekiq"
|
2013-10-25 03:39:31 -04:00
|
|
|
task :start do
|
2014-05-27 11:14:41 -04:00
|
|
|
system *%W(bin/background_jobs start)
|
2013-10-09 10:45:32 -04:00
|
|
|
end
|
2013-10-09 09:44:25 -04:00
|
|
|
|
2013-10-25 03:39:31 -04:00
|
|
|
desc 'GitLab | Restart sidekiq'
|
|
|
|
task :restart do
|
2014-05-27 11:14:41 -04:00
|
|
|
system *%W(bin/background_jobs restart)
|
2013-01-09 00:44:05 -05:00
|
|
|
end
|
2013-02-27 13:40:01 -05:00
|
|
|
|
2015-06-23 10:52:40 -04:00
|
|
|
desc "GitLab | Start sidekiq with launchd on Mac OS X"
|
2013-02-12 10:01:55 -05:00
|
|
|
task :launchd do
|
2014-05-27 11:14:41 -04:00
|
|
|
system *%W(bin/background_jobs start_no_deamonize)
|
2013-10-09 09:46:00 -04:00
|
|
|
end
|
2013-01-09 00:44:05 -05:00
|
|
|
end
|