Skip to content

Instantly share code, notes, and snippets.

@mmower
Created August 6, 2008 10:21
Show Gist options
  • Save mmower/4202 to your computer and use it in GitHub Desktop.
Save mmower/4202 to your computer and use it in GitHub Desktop.
## Recipe
task :stop, :roles => :app do
run "cd #{current_path} && #{try_runner} if [ -f tmp/mproxy.pid ]; then kill `echo tmp/mproxy.pid`; fi"
end
## Output
* executing `deploy:stop'
* executing "cd /data/mproxy/current && sudo -p 'sudo password: ' -u comi if [ -f tmp/mproxy.pid ]; then kill `echo tmp/mproxy.pid`; fi"
servers: ["65.74.139.2"]
[65.74.139.2:8204] executing command
*** [err :: 65.74.139.2:8204] sh: -c: line 0: syntax error near unexpected token `then'
*** [err :: 65.74.139.2:8204] sh: -c: line 0: `cd /data/mproxy/current && sudo -p 'sudo password: ' -u comi if [ -f tmp/mproxy.pid ]; then kill `echo tmp/mproxy.pid`; fi'
command finished
command "cd /data/mproxy/current && sudo -p 'sudo password: ' -u comi if [ -f tmp/mproxy.pid ]; then kill `echo tmp/mproxy.pid`; fi" failed on 65.74.139.2:8204
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment