Re-sending this from the right email account, added some more detail, list admin - the earlier version can be deleted. On Thu, March 22, 2007 6:07 am, Yong zhang wrote: >>> I've played around quixote a while and I am about >>> use quixote + scgi to build a production web site. But one big question >>> in my mind is how to make scgi server start/stop as what we do for >>> apachectl in linux. Quixote's younger cousin `qp` has a process start/stop/status control mechanism built in which controls one or more 'sites'; you might find inspiration by looking through its sources. Since qp uses qpy (an idea straight out of ptl), has essentially the same object publishing, request and response architecture, and supports SCGI, you will not find looking at qp a foreign experience. Look at qp.lib.site.py and qp.hub.web.py for starters. The control script is in bin/qp - perhaps there are ideas there to be harvested. http://www.mems-exchange.org/software/qp/ Perhaps someone might want to make a qp command line work-alike for Quixote? There had at one time been a subset of this capability in the `Dulcinea` package (you can find older versions of that at the mems-exchange.org site noted above) -- that would be a good place to start for ideas even if you only want to create a single site-specific script. % qp -h Usage: qp [options] [start|stop|restart] [site]* Control the servers for the sites in your qp installation. No options is the same as "--status". "stop" is the same as "--stop". "start" is the same as "--start". "restart" is the same as "--stop --start". If "--stop" and "--start" are both present and the durus server is already running, only the web server is restarted. The script searches for sites in the qp.sites package, which in turn searches through the following list, by default. ${QP_SITES} ~/qp_sites ~/.qp_sites /var/qp_sites /usr/local/lib/python2.5/site-packages/qp/sites Options: -h, --help show this help message and exit -u, --start Start the durus and web servers. -d, --stop Stop the durus and web servers. -q, --quickrestart Quick restart of the web server(s) of the named sites. -v, --status Show the current status of the durus and web servers. -c, --configuration Show the site configuration. -l, --log tail -f the log for the last named site. -i, --interact Open an interactive session with the last named site.