Just stick this code snippet at the bottom of the
deploy.rb file.
# Redefine the application server controls to use monit.
namespace :deploy do
%W(start stop restart).each do |event|
desc "#{event} using Monit"
task event, :except => { :no_release => true } do
sudo "/usr/sbin/monit -g #{application} #{event} all"
end
end
end