Hi,
I'm a bit slow -- well, okay very slow -- in getting going with
TurboGears. However I do have one working app. My question:
Given that I don't have multiple servers and most of my existing web
pages are static and not written or maintained by me, I am now
(slowly) creating dynamic apps driven by various databases. Is it
better to have one monolithic TurboGears monster that controls them
all or lots of smaller separate apps? I'm guessing the later, but
each time I add something to supervisor, it starts up three
processes...
________________________________________________________________
$ # Output has been modified to fit screen (This is the non-letterbox
edition) ;-)
$ ps auxwww | grep python | sort -k 11 | expand | cut -b 48-
S Nov21 0:01 /usr/bin/python2.4
/home/kjcole/TurboGears/Research-at-Gallaudet/start-rag.py
Sl Nov21 0:20 /usr/bin/python2.4
/home/kjcole/TurboGears/Research-at-Gallaudet/start-rag.py
S Nov21 0:01 /usr/bin/python2.4
/home/kjcole/TurboGears/Research-at-Gallaudet/start-rag.py
Sl Nov21 0:02 /usr/bin/python2.4
/home/kjcole/TurboGears/Research-at-Gallaudet/start-rag.py
Ss Nov21 0:00 /usr/bin/python /usr/local/bin/supervisord
Ss Nov21 0:00 /usr/bin/python /usr/local/bin/supervisord
________________________________________________________________
Without the commented-out lines, my supervisord.conf looks like:
________________________________________________________________
[supervisord]
http_port=/tmp/supervisor.sock ; (default is to run a UNIX domain socket server)
logfile=/var/log/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 ; (logging level;default info; others: debug,warn)
pidfile=/var/run/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)
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:rag]
command=/home/kjcole/TurboGears/Research-at-Gallaudet/run
user=kjcole ; setuid to this UNIX account to run the program
logfile=/var/log/rag.log ; child log path, use NONE for none; default AUTO
; A second [program] stanza with a similar setup
________________________________________________________________
The "run" script is:
________________________________________________________________
cd "$(dirname $0)"
exec ./start-rag.py
________________________________________________________________
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---