[Zope-DB] I also think...
Bo M. Maryniuck
b.maryniuk@forbis.lt
Thu, 8 May 2003 16:57:33 +0200
On Thursday 08 May 2003 03:28, Anton Hughes wrote:
> The problem doesn't happen when I use /home/zope/start at the command line.
...
> /etc/init.d/zope:
> =================
...
> /home/zope/start
Also I just think -- probably you want first "cd" to the /home/zope/start
since your /home/zope/start script has stuff like
cwd=`cd $reldir; pwd`
INSTANCE_HOME=$cwd
...which does not the same if you call it from elsewere, e.g.:
bo@oberon:(~) cat foo
#!/bin/sh
pwd
bo@oberon:(~) ./foo
/home/bo
bo@oberon:(~) cd /var/lib
bo@oberon:(/var/lib) /home/bo/foo
/var/lib
bo@oberon:(/var/lib)
Other question WHY you do strange things like running Zope from */home*?
Install it normally somewhere, e.g. /opt/zope/ or /usr/local/zope under
predefined "zope" user then run it in /etc/init.d/zope script like:
ENV_FILE=/opt/oracle/oracle_env
su - zope -c ". $ENV_FILE;/opt/zope/start"
--
HTH, Bogdan
main(k){float i,j,r,x,y=-16;while(puts(""),y++<15)for(x
=0;x++<84;putchar(" .:-;!/>)|&IH%*#"[k&15]))for(i=k=r=0;
j=r*r-i*i-2+x/25,i=2*r*i+y/10,j*j+i*i<11&&k++<111;r=j);}
/* Mandelbrot in ASCII. */