Permalink
Browse files

Update documentation for Capistrano recipes that point out the rollin…

…g restarts, and add a new "stop_start" task ("stop_start_mongrel_cluster" for Capistrano 1.x).
  • Loading branch information...
1 parent e1ddc69 commit 89fb1925d20ef41a6f1acc55a6bbb2965dd1381d @chuyeow committed Dec 3, 2008
@@ -51,16 +51,30 @@
end
desc <<-DESC
- Restart the Mongrel processes on the app server by starting and stopping the cluster. This uses the :use_sudo
- variable to determine whether to use sudo or not. By default, :use_sudo is set to true.
+ Restart the Mongrel processes on the app server. The processes go through
+ rolling restarts (i.e. Process 1 is restarted, then Process 2, and so on).
+ This uses the :use_sudo variable to determine whether to use sudo or not.
+ By default, :use_sudo is set to true.
DESC
task :restart_mongrel_cluster , :roles => :app do
set_mongrel_conf
cmd = "#{mongrel_rails} cluster::restart -C #{mongrel_conf}"
cmd += " --clean" if mongrel_clean
send(run_method, cmd)
end
-
+
+ desc <<-DESC
+ Restart the Mongrel processes on the app server by starting and stopping the cluster.
+ This uses the :use_sudo variable to determine whether to use sudo or not.
+ By default, :use_sudo is set to true.
+ DESC
+ task :stop_start_mongrel_cluster, :roles => :app do
+ set_conf
+ cmd = "#{mongrel_rails} cluster::stop_start -C #{mongrel_conf}"
+ cmd += " --clean" if mongrel_clean
+ send(run_method, cmd)
+ end
+
desc <<-DESC
Stop the Mongrel processes on the app server. This uses the :use_sudo
variable to determine whether to use sudo or not. By default, :use_sudo is
@@ -53,16 +53,30 @@
end
desc <<-DESC
- Restart the Mongrel processes on the app server by starting and stopping the cluster. This uses the :use_sudo
- variable to determine whether to use sudo or not. By default, :use_sudo is set to true.
+ Restart the Mongrel processes on the app server. The processes go through
+ rolling restarts (i.e. Process 1 is restarted, then Process 2, and so on).
+ This uses the :use_sudo variable to determine whether to use sudo or not.
+ By default, :use_sudo is set to true.
DESC
task :restart , :roles => :app do
set_conf
cmd = "#{mongrel_rails} cluster::restart -C #{mongrel_conf}"
cmd += " --clean" if mongrel_clean
send(run_method, cmd)
end
-
+
+ desc <<-DESC
+ Restart the Mongrel processes on the app server by starting and stopping the cluster.
+ This uses the :use_sudo variable to determine whether to use sudo or not.
+ By default, :use_sudo is set to true.
+ DESC
+ task :stop_start, :roles => :app do
+ set_conf
+ cmd = "#{mongrel_rails} cluster::stop_start -C #{mongrel_conf}"
+ cmd += " --clean" if mongrel_clean
+ send(run_method, cmd)
+ end
+
desc <<-DESC
Stop the Mongrel processes on the app server. This uses the :use_sudo
variable to determine whether to use sudo or not. By default, :use_sudo is

0 comments on commit 89fb192

Please sign in to comment.