[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [seul-edu] Zope Question



Hi, I made a  script like those that run other servers as daemons, put this
one in the /etc/rc.d/init.d and if you are using RedHat use the
control-panel to add it to the level 5 starting.  I'm using zope as an
independent server of Apache.  Maybe you can compile it to listen to port
80, so it gets all the requests from the http one.

Hope its useful for you.

Ryan Booz wrote:

> Hey gang,
>
> I'm posting this question here because I know a while back some people
> had mentioned they were using Zope.  I'm trying to start using it,
> getting used to the DTML and all the other stuff.  I can get it running
> with my Apache server, and that's all well and good.  But I have these
> two questions which I can't seem to find answers to in current Zope
> documents and help.
>
> 1.  How do I get the server process to run as a daemon?  I've tried the
> one script for an rc process I found on a site, but my server just hangs
> and I never get a command prompt back.  All other processes I've ever
> run at startup are either designed to be daemons, or have a specific
> switch to add to the program name.
>
> 2.  OK, this is kind of two part.  First, where does Zope actually store
> all of the directories and files you create for a site.  If I have a
> fake directory as the "trigger" for the persistent CGI process, than
> where does it actually store this pages I'm creating?  As an example,
> following the install instructions that comes with Zope, I've set Apache
> to send every request for /zope to the FastCGI process running in the
> background.  That directory does not exist in my htdocs directory.
> Where is this stuff going?
>
>     Two, can I get Zope to answer the general requests for a site (like
> www.bms.school my internal server and fake domain.)  Rather than having
> to specify a directory, it would just send all requests to Zope.  But to
> take that one step further, if I had user accounts set up with the
> /~username convention, would this stuff be able to pass through Zope and
> actually go to those directories?  I don't think I'm making this
> question clear, but I don't know how else to state it right now.
>
> Thanks a bunch,
> Ryan Booz
> Belleville Mennonite School

--
-----------------------------------------------------------
Igor TAmara Pati~o
mailto:ikks@bigfoot.com
http://members.bigfoot.com/~ikks


#! /bin/sh
#Servidor de Tomcat
CWD='pwd'

case "$1" in
   start)
	echo -n "Starting Zope services: "
	su - igor -c "/usr/local/zope/start 2>&1 /tmp/zope.log &" > /dev/null 2>&1 &
	echo
	;;
   stop)
	echo -n "Stopping Zope services: "
	su - igor -c "/usr/local/zope/stop"
	;;
   status)
        echo 
	;;
   restart|reload)
	$0 stop
	$0 start
	;;
   *)
	echo "Usage: zoped {start|stop|status|restart}"
	exit 1
esac

exit 0