Skip to content

Instantly share code, notes, and snippets.

@camwest
Created March 7, 2010 15:53
Show Gist options
  • Select an option

  • Save camwest/324431 to your computer and use it in GitHub Desktop.

Select an option

Save camwest/324431 to your computer and use it in GitHub Desktop.
echo_supervisord_conf > /etc/supervisord.conf #sets up the sample supervisor configuration.
-- now edit the file and add your application details. Here is a sample. Replace :virtual_host with your virtual host name.
[program:myapp]
command=/var/www/vhosts/:virtual_host/application/start.sh
autostart=true
autorestart=true
startretries=3
stdout_logfile=/var/www/vhosts/:virtual_host/application/log/server.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stderr_logfile=/var/www/vhosts/:virtual_host/application/log/error.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment