Problems starting zope server on boot process / Redhat 7.3
Problems starting zope server on boot process / Redhat 7.3 I am using zope on a redhat 7.3 vserver (server4free.de) machine for the first time. Up to now I have only experiences with zope on suse 8.0 (zope is preconfigured there). I am trying to get zope started at boot process. - I installed zope correctly on the machine. - changed all the necessary permissions according to http://www.zope.org/Members/markoer2/resources/howtos/redhat_7.3_startup . - the zope startup script starts the zope server correctly - created an init script zope at /etc/rc.d/init.d - registered the zope service with chkconfig --add zope But nevertheless zope won't startup on boot process. When I try to invoke zope manually as root by service zope start I only get env: /etc/init.d/zope: No such file or directory I don't' get any further. What did I wrong? Can you help me? Thanx in advance. Cheers Dominik Fischer
after doing the chkconfig --add, have you checked that the script will be run by looking at the output of chkconfig --list? you might have to do a chkconfig --level xyz zope on to set the runlevels. jens On Sunday, Mar 16, 2003, at 09:51 US/Eastern, news@pernex.de wrote:
Problems starting zope server on boot process / Redhat 7.3
I am using zope on a redhat 7.3 vserver (server4free.de) machine for the first time. Up to now I have only experiences with zope on suse 8.0 (zope is preconfigured there).
I am trying to get zope started at boot process. - I installed zope correctly on the machine. - changed all the necessary permissions according to http://www.zope.org/Members/markoer2/resources/howtos/ redhat_7.3_startup . - the zope startup script starts the zope server correctly - created an init script zope at /etc/rc.d/init.d - registered the zope service with chkconfig --add zope
But nevertheless zope won't startup on boot process.
When I try to invoke zope manually as root by service zope start I only get env: /etc/init.d/zope: No such file or directory
I don't' get any further. What did I wrong? Can you help me? Thanx in advance.
Cheers
Dominik Fischer
Hi Jens, chkconfig --list says für zope 2-3-4-5 on else off. For me the problem seems to be connected with the fact that I cannot start zope via service zope start. The only answer I obtain is env: /etc/init.d/zope: no such file or directory. Possibly the file zope has wrong permissions. It is executable. Permissions are -rwsr-xr-x zope zope The zope start script itself works fine. Cheers, Dominik Fischer -----Ursprüngliche Nachricht----- Von: Jens Vagelpohl [mailto:jens@zope.com] Gesendet: Sonntag, 16. März 2003 17:47 An: news@pernex.de Cc: zope@zope.org Betreff: Re: [Zope] Problems starting zope server on boot process / Redhat 7.3 after doing the chkconfig --add, have you checked that the script will be run by looking at the output of chkconfig --list? you might have to do a chkconfig --level xyz zope on to set the runlevels. jens On Sunday, Mar 16, 2003, at 09:51 US/Eastern, news@pernex.de wrote:
Problems starting zope server on boot process / Redhat 7.3
I am using zope on a redhat 7.3 vserver (server4free.de) machine for the first time. Up to now I have only experiences with zope on suse 8.0 (zope is preconfigured there).
I am trying to get zope started at boot process. - I installed zope correctly on the machine. - changed all the necessary permissions according to http://www.zope.org/Members/markoer2/resources/howtos/ redhat_7.3_startup . - the zope startup script starts the zope server correctly - created an init script zope at /etc/rc.d/init.d - registered the zope service with chkconfig --add zope
But nevertheless zope won't startup on boot process.
When I try to invoke zope manually as root by service zope start I only get env: /etc/init.d/zope: No such file or directory
I don't' get any further. What did I wrong? Can you help me? Thanx in advance.
Cheers
Dominik Fischer
On Mon, Mar 17, 2003 at 03:43:21PM +0100, news@pernex.de mailed:
For me the problem seems to be connected with the fact that I cannot start zope via service zope start. The only answer I obtain is env: /etc/init.d/zope: no such file or directory.
This means that something in the zope script isn't where it's expected to be. Can you send me the script? -- Bryan C. Andregg Duke University Medical Center Programmer Dept. of Anesthesiology e <bryan.andregg@duke.edu> p +1 919 684 6201
Hallo Bryan, I just put the scripts in here. Just checked all the file locations. They seem to be ok. However I did not find zProcessManager.pid and zwatchdog.pid on my running Zope which I started manually. I commented them out on my system. Thanks a lot! Dominik Fischer --------------------------------------------- Zope script in /etc/rc.d/init.d #!/bin/bash # # /etc/rc.d/init.d/zope # # Starts the zope daemon - by Markoer # # chkconfig: 2345 72 72 # description: zope is a web server specifically for handling \ # HTTP requests to the Zope web-application service. # processname: zope # # Source function library. . /etc/rc.d/init.d/functions case "$1" in start) # Check if zope is already running if [ ! -f /var/lock/subsys/zope ]; then echo -n 'Starting zope daemon: ' /usr/local/zope/261/start 2> /dev/null while : ; do [ -f /usr/local/zope/261/var/Z2.pid ] && break sleep 1 && echo -n "." done cat /usr/local/zope/261/var/Z2.pid > /var/lock/subsys/zope touch /var/lock/subsys/zope cat /usr/local/zope/261/var/Z2.pid > /var/run/zope/zope.pid touch /var/run/zope/zope.pid fi echo_success echo ;; stop) echo -n 'Stopping zope daemon: ' [ -f /usr/local/zope/261/var/Z2.pid ] && kill `cat /usr/local/zope/261/var/Z2.pid` rm -f /var/lock/subsys/zope rm -f /usr/local/zope/261/var/Z2.pid rm -f /usr/local/zope/261/var/Data.fs.lock rm -f /usr/local/zope/261/var/zProcessManager.pid rm -f /var/run/zope/zope.pid rm -f /var/run/zope/pcgi.pid rm -f /var/run/zope/pcgi.soc rm -f /var/run/zope/zwatchdog.pid echo_success echo ;; reload|restart) $0 stop $0 start ;; status) if [ -f /usr/local/zope/261/var/Z2.pid ]; then cat /usr/local/zope/261/var/Z2.pid > /var/lock/subsys/zope touch /var/lock/subsys/zope cat /usr/local/zope/261/var/Z2.pid > /var/run/zope/zope.pid touch /var/run/zope/zope.pid echo "zope (pid `head -1 /var/run/zope/zope.pid`) is running..." fi ;; *) echo "Usage: service zope {start|stop|restart|reload|status}" exit 1 esac exit 0 --------------------------------------------- ZServer startup script in /usr/local/zope/261/ #!/bin/sh umask 077 reldir=`dirname $0` cwd=`cd $reldir; pwd` # Zope's event logger is controlled by the "EVENT_LOG_FILE" environment # variable. If you don't have a "EVENT_LOG_FILE" environment variable # (or its older alias "STUPID_LOG_FILE") set, Zope will log to the standard # output. For more information on EVENT_LOG_FILE, see doc/ENVIRONMENT.txt. ZLOGFILE=$EVENT_LOG_FILE if [ -z "$ZLOGFILE" ]; then ZLOGFILE=$STUPID_LOG_FILE fi if [ -z "$ZLOGFILE" ]; then EVENT_LOG_FILE="" export EVENT_LOG_FILE fi exec /usr/local/zope/261/bin/python $cwd/z2.py -D -u root "$@" -----Ursprüngliche Nachricht----- Von: Bryan C. Andregg [mailto:bryan.andregg@duke.edu] Gesendet: Montag, 17. März 2003 15:57 An: news@pernex.de Cc: 'Jens Vagelpohl'; zope@zope.org Betreff: Re: [Zope] Problems starting zope server on boot process / Redhat 7.3 On Mon, Mar 17, 2003 at 03:43:21PM +0100, news@pernex.de mailed:
For me the problem seems to be connected with the fact that I cannot start zope via service zope start. The only answer I obtain is env: /etc/init.d/zope: no such file or directory.
This means that something in the zope script isn't where it's expected to be. Can you send me the script? -- Bryan C. Andregg Duke University Medical Center Programmer Dept. of Anesthesiology e <bryan.andregg@duke.edu> p +1 919 684 6201
participants (3)
-
Bryan C. Andregg -
Jens Vagelpohl -
news@pernex.de