Skip to content

Instantly share code, notes, and snippets.

@ejucovy
Created June 12, 2011 11:49
Show Gist options
  • Save ejucovy/1021475 to your computer and use it in GitHub Desktop.
Save ejucovy/1021475 to your computer and use it in GitHub Desktop.
supervisorctl tail -f
import random
import sys
while True:
print random.random()
sys.stdout.flush()
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
username=123456789012 ; (default is no username (open server))
password=123975819457149571405871239758194567890123456
[supervisord]
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
username=123456789012
password=123975819457149571405871239758194567890123456
[program:program]
command=python program.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment