Found it. For any one else looking its:
desc "Start AGI Server"
task :start_agi, :roles => :app do
sudo "#{current_path}/script/agi_server -d -e production -C
#{current_path}"
end
desc "Stop AGI Server"
task :stop_agi, :roles => :app do
sudo "#{current_path}/script/agi_server -a stop -C #{current_path}"
end
desc "Start AMI Servers"
task :start_ami, :roles=>:app do
sudo "#{current_path}/script/ami_server -d -C #{current_path}"
sudo "#{current_path}/script/ami_event_handler -d -C
#{current_path}"
end
desc "Stop AMI Servers"
task :stop_ami, :roles=>:app do
sudo "#{current_path}/script/ami_event_handler -a stop -C
#{current_path}"
sudo "#{current_path}/script/ami_server -a stop -C #{current_path}"
end
desc "Add Restart of AMI Servers"
task :before_restart do
stop_ami
start_ami
end
desc "Add restart of AGI Server"
task :after_restart do
stop_agi
start_agi
end
On Feb 11, 8:00 pm, Mike Binder <[EMAIL PROTECTED]>
wrote:
> Hello every one. I currently have a rails site that requires Telegraph
> (http://telegraph.rubyforge.org/Home.html). My problem is I cant get
> capistrano to restart telegraph using:
>
> task :restart, :roles => :proxy, :excempt => { :no_release => true }
> do
> sudo "killall ruby script/agi_server -d -e production"
> sudo "#{current_directory}script/agi_server -d -e production"
> end
>
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---