I have a capistrano deploy script that works great except for the restart task. I have it run bin/restart but it never returns control back. The restart does actually work it's just that capistrano doesn't realize the command is finished. I've even run an 'ls' command afterwards "some_path/bin/restart;ls" and have tried returning true "some_path/bin/restart;true" but neither helped. The ls command ran and returned a listing but never 'exited'.
The restart task is below (site contains the rails deployment directories/symbolic links).
Oddly I can run from the command line in a normal ssh session and it works fine - restarts in a couple seconds.
asked Jun 05 '11 at 23:20