Hello folks,
I'm using Bluepill but the same 'issue' is with god and such.
I would like to know how to check if the process (Bluepill) is running
before stopping it, because on a new server capistrano fails at the
end if it's not running.
No big deal but would be nice to have, I tried scouring various
callbacks but I didn't come up with a good idea, unless resorting
brutally to check for running processes on the remote machine.
after "deploy:update", "bluepill:stop", "bluepill:start"
namespace :bluepill do
desc "Stop processes that bluepill is monitoring and quit bluepill"
task :stop, :roles => [:app] do
sudo "bluepill stop"
sudo "bluepill quit"
sleep 5
end
desc "Load bluepill configuration and start it"
task :start, :roles => [:app] do
sudo "bluepill load #{current_path}/config/bluepill/
#{rails_env}.pill"
end
desc "Prints bluepills monitored processes statuses"
task :status, :roles => [:app] do
sudo "bluepill status"
end
end
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en