I am using Capistrano for my webapp and after deploy I need to restart
memcached service. I am trying to do it with
sudo “/etc/init.d/memcached restart”
But it does not do it, even if memcached service existed - after
deployment memcached service is off.
I did some researching and added
run “sleep 40”
right after sudo command and found that service process existed and
memcached service started.
But it killed when SSH Capistrano finishes.
What could be reason of this strange behaviour? I thought services
processes work independently from Capistrano SSH session. How to solve
My environment: Ubuntu Breezy, latest Capistrano.