OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97f124b
)
Use sidekiq restart rake task in init script
author
Jacob Vosmaer
<contact@jacobvosmaer.nl>
Wed, 9 Oct 2013 14:49:01 +0000
(16:49 +0200)
committer
Jacob Vosmaer
<contact@jacobvosmaer.nl>
Wed, 9 Oct 2013 14:49:01 +0000
(16:49 +0200)
lib/support/init.d/gitlab
patch
|
blob
|
history
diff --git
a/lib/support/init.d/gitlab
b/lib/support/init.d/gitlab
index
6aff7b5
..
f157d71
100755
(executable)
--- a/
lib/support/init.d/gitlab
+++ b/
lib/support/init.d/gitlab
@@
-218,9
+218,7
@@
reload(){
kill -USR2 "$wpid"
echo "Done."
echo "Restarting GitLab Sidekiq since it isn't capable of reloading its config..."
- RAILS_ENV=$RAILS_ENV bundle exec rake sidekiq:stop
- echo "Starting Sidekiq..."
- RAILS_ENV=$RAILS_ENV bundle exec rake sidekiq:start
+ RAILS_ENV=$RAILS_ENV bundle exec rake sidekiq:restart
# Waiting 2 seconds for sidekiq to write it.
sleep 2
status