Skip to content

Instantly share code, notes, and snippets.

@tvjames
Created July 15, 2012 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvjames/3116342 to your computer and use it in GitHub Desktop.
Save tvjames/3116342 to your computer and use it in GitHub Desktop.
templates/apps/supervisord.conf
[program:%(appname)s]
numprocs=%(numbackend)s
process_name=%(appname)s-%(baseport)s-%%(process_num)04d
command=%(app_folder_bin)s/daemon
user=%(app_owner)s
stderr_logfile = %(app_folder_logs)s/%(appname)s-stderr.log
stdout_logfile = %(app_folder_logs)s/%(appname)s-stdout.log
directory=%(app_folder)s
environment=PATH="%(mono_bin)s:$PATH",PORT="$((%(baseport)s+%%(process_num)d))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment