Commit ffab78c8 by Tensho Committed by Andrew Babichev

Sleep between stop and start on restart

parent 3a5ecde3
...@@ -205,6 +205,9 @@ namespace :sneakers do ...@@ -205,6 +205,9 @@ namespace :sneakers do
desc 'Restart sneakers' desc 'Restart sneakers'
task :restart do task :restart do
invoke! 'sneakers:stop' invoke! 'sneakers:stop'
# It takes some time to stop serverengine processes and cleanup pidfiles.
# We should wait until pidfiles will be removed.
sleep 5
invoke 'sneakers:start' invoke 'sneakers:start'
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment