Skip to content


How do we restart just one program using capistrano? #2

prcongithub opened this Issue · 1 comment

2 participants


I have multiple programs managed by supervisor on my server. While deploying app, I want to restart just that one app and not all the applications managed by supervisor.


Currently, there is no way to restart an application service in supervisord. IMHO, override deploy:restar task to control service via supervisorctl might help you in this case.

# In "config/deploy.rb"
require "capistrano-supervisord"

# Override `deploy:restart` task
namespace(:deploy) do
  task(:restart, :roles => :app) do
    run("#{sudo} supervisorctl restart #{application}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.