/usr/lib/python2.6/site-packages/supervisor
Edit: /usr/lib/python2.6/site-packages/supervisor/supervisord.pyc (22117B)
FATc @ sL d Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k
Z
d d k Z d d k Z d d k
l Z d d k
l Z d d k
l Z d f d YZ d Z d f d
YZ d Z d f d
YZ d f d YZ e d Z e d j o e n d S( s supervisord -- run a set of applications as daemons.
Usage: %s [options]
Options:
-c/--configuration URL -- configuration file or URL
-n/--nodaemon -- run in the foreground (same as 'nodaemon true' in config file)
-h/--help -- print this usage message and exit
-u/--user USER -- run supervisord as this user (or numeric uid)
-m/--umask UMASK -- use this umask for daemon subprocess (default is 022)
-d/--directory DIRECTORY -- directory to chdir to when daemonized
-l/--logfile FILENAME -- use FILENAME as logfile path
-y/--logfile_maxbytes BYTES -- use BYTES to limit the max size of logfile
-z/--logfile_backups NUM -- number of backups to keep when max bytes reached
-e/--loglevel LEVEL -- use LEVEL as log level (debug,info,warn,error,critical)
-j/--pidfile FILENAME -- write a pid file for the daemon process to FILENAME
-i/--identifier STR -- identifier used for this instance of supervisord
-q/--childlogdir DIRECTORY -- the log directory for child process logs
-k/--nocleanup -- prevent the process from performing cleanup (removal of
orphaned child log files, etc.) at startup.
-w/--http_port SOCKET -- the host/port that the HTTP server should listen on
-g/--http_username STR -- the username for HTTP auth
-r/--http_password STR -- the password for HTTP auth
-a/--minfds NUM -- the minimum number of file descriptors for start success
--minprocs NUM -- the minimum number of processes available for start success
iN( t
ServerOptions( t decode_wait_status( t signamet
ProcessStatesc B s8 e Z d Z d Z d Z d Z d Z d Z d Z d Z RS( i i
i i i( id i i (
t __name__t
__module__t STOPPEDt STARTINGt RUNNINGt BACKOFFt STOPPINGt EXITEDt FATALt UNKNOWN( ( ( s: /usr/lib/python2.6/site-packages/supervisor/supervisord.pyR ; s c C s3 x, t i D]! } t t | | j o | Sq
Wd S( N( R t __dict__t getattr( t codet statename( ( s: /usr/lib/python2.6/site-packages/supervisor/supervisord.pyt getProcessStateDescriptionE s
t SupervisorStatesc B s e Z d Z d Z RS( i i ( R R t ACTIVEt SHUTDOWN( ( ( s: /usr/lib/python2.6/site-packages/supervisor/supervisord.pyR J s c C s3 x, t i D]! } t t | | j o | Sq
Wd S( N( R R R ( R R ( ( s: /usr/lib/python2.6/site-packages/supervisor/supervisord.pyt getSupervisorStateDescriptionN s
t
Subprocessc B s e Z d Z d Z d Z d Z d Z d Z d Z d Z d Z
d Z d Z
d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d
Z d Z d Z d
Z d Z d Z d Z d Z d Z d Z! d Z" RS( s A class to manage a subprocess.i t c
C sq | | _ | | _ h | _ | i oH | i } | i } | i | i t i d d | d | d | | _ n d S( sc Constructor.
Arguments are a ServerOptions instance and a ProcessConfig instance.
s %(message)st rotatingt maxbytest backupsN(
t optionst configt pipest logfilet logfile_backupst logfile_maxbytest getLoggert loggingt INFOt childlog( t selfR R R R ( ( s: /usr/lib/python2.6/site-packages/supervisor/supervisord.pyt __init__g s
c C s= | i o/ x, | i i D] } | i | i q Wn d S( N( R% t handlerst removet reopen( R&