Running 10.2.1 with fink zope 2.5.1-2

Continued struggles with the startup scripts that come with fink's zope
yield only slightly better results.

Is anyone else out there having any success (or similar problems to me) with
fink's zope? Depending on I'm not sure just what, issuing "sudo ./zopectl
start" results many times in the series of periods (while waiting (script is
issuing "sleep 1" repeatedly) being printed out only for startup to finally
fail. Other times there is a repeating message about the "cut" command and
stdin being too long, for which ctrl-c must be issued to stop the runaway
process, but usually after that zope has started successfully. This seems to
be the only time it starts successfully.

I have walked through the zopectl script as best I could in a few hours
(with my very limited script experience) and it seems pretty complicated to
me. Seems designed to handle many permutations of situations in which pid
files exist and don't when the program is actually running and not and can
and can't be killed. There is a "kill -0" command near the beginning of the
script that I can't understand based on the kill manpage. Also I am not sure
how kill behaves when you try to kill a process that doesn't exist, does it
return 1 or 0, does it succeed or fail?

There are a plethora of other questions that I have as I run through the
script but I am very interested in fixing it and being able to start and
stop zope reliably on my machine. Finally I have made sure zope and related
processes are not running and deleted all the pid and lock files in the
relevant directories and tried the "sudo ./zopectl start" (from within
/sw/sbin -- does cwd need to be something else?) command but even starting
it with a clean slate like that doesn't get it started.

I did notice early on that the appropriate var directory doesn't get created
during the install (I have installed multiple times from binaries and
source) and only after creating the var directory myself did I have any luck
starting, but even then it is very inconsistent and doesn't start more often
than it starts. I have the modes of both relevant var directories set 777
even though they are owned by root. I think the processes run as www.

When I try to use the z2.py (to which /sw/sbin/zope-z2 is linked) to start
(zopectl actually calls this to start zope), I see repeating errors about
python2.1 being unable to open /sw/bin/zope-z2 (why is python trying to open
what is the python script file in the first place -- I don't know python at
all). This repeating error message cannot be stopped with ctrl-c -- only
with ctrl-d or ctrl-z. After ctrl-z or ctrl-d that terminal window must be
closed.

I'm sure I'll have to brush up on scripting (really I only know about bash)
in order to make any progress myself, and even then, the logic in the
startup script seems a little contorted to me and there are no comments. It
would be helpful to me to know what 'we' need to do in the first place in
the script. I suppose mostly we want to make sure zope is not running before
we start it again unless we are giving different working directory
parameters.

Hate to be longwinded like this but wanted to provide all the information I
have. Would appreciate any input from "Works fine for me." to actual help
fixing it (and if appropriate, making changes to the fink package).

Thanks,
Tom Harris







-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to