Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
2128419c
Commit
2128419c
authored
Oct 09, 2013
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always shut down sidekiq before starting
parent
7af1bc3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
lib/tasks/sidekiq.rake
lib/tasks/sidekiq.rake
+9
-1
No files found.
lib/tasks/sidekiq.rake
View file @
2128419c
...
...
@@ -5,7 +5,15 @@ namespace :sidekiq do
end
desc
"GITLAB | Start sidekiq"
task
:start
do
task
:start
=>
:restart
desc
'GitLab | Restart sidekiq'
task
:restart
do
if
File
.
exist?
(
pidfile
)
puts
'Shutting down existing sidekiq process.'
Rake
::
Task
[
'sidekiq:stop'
].
invoke
puts
'Starting new sidekiq process.'
end
system
"nohup bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default -e
#{
Rails
.
env
}
-P
#{
pidfile
}
>>
#{
Rails
.
root
.
join
(
"log"
,
"sidekiq.log"
)
}
2>&1 &"
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment