Hi... Someone can say me where to obtain a good one script of start for zope -- Alvaro J. Hernandez A. alhernan@uc.edu.ve ahernand@cantv.net Linux User: 122569
"start" -aj --On Donnerstag, 29. Mai 2003 10:50 Uhr -0400 Alvaro Hernandez <alhernan@uc.edu.ve> wrote:
Hi...
Someone can say me where to obtain a good one script of start for zope -- Alvaro J. Hernandez A. alhernan@uc.edu.ve ahernand@cantv.net Linux User: 122569
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Thursday 29 May 2003 11:09, you wrote:
"start"
-aj
Thank you friend but I need a good one scritp to put on /etc/rc.d/init.d I need start zope each time that start my linux box -- Alvaro J. Hernandez A. alhernan@uc.edu.ve ahernand@cantv.net Linux User: 122569
Alvaro Hernandez wrote:
Hi...
Someone can say me where to obtain a good one script of start for zope
Here's one I've made for a RedHat-Server... You should be able to modify it to fit it into your distro. Cheers, Maik #!/bin/bash # # zope This shell script takes care of starting and stopping # the Zope Application Server. # # chkconfig: - 78 12 # description: Zope Application Server # Source function library. (only RedHat) . /etc/rc.d/init.d/functions # Source networking configuration. (only RedHat) . /etc/sysconfig/network prog="Zope Application Server" ZOPEPATH="/home/zope/Zope" ZOPEINIT="-a 127.0.0.1 -w 8080 -f 8021 -p - -L de_DE" EVENT_LOG_FILE="$ZOPEPATH/var/Zope.log" export EVENT_LOG_FILE start(){ su -c "$ZOPEPATH/start $ZOPEINIT" zope & ret=$? if [ $ret -eq 0 ]; then action $"Starting $prog: " /bin/true else action $"Starting $prog: " /bin/false fi return $ret } stop(){ su -c $ZOPEPATH/stop zope } restart(){ stop start } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart) restart ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac exit $? ret=$? if [ $ret -eq 0 ]; then action $"Stopping $prog: " /bin/true else action $"Stopping $prog: " /bin/false fi return $ret
Maik Jablonski wrote:
Here's one I've made for a RedHat-Server... You should be able to modify it to fit it into your distro.
Please note: the last few indented lines in the last mail should go into the stop-function. Just a copy&paste-error from my xterm. Sorry. -mj
Someone can say me where to obtain a good one script of start for zope
I haven't done this myself, but zopectl http://www.zope.org/Members/rdmurray/zopectl seems to have the same CLI contract as (SysV-stlye, at least) system start scripts. Plus it gives you nifty config control. I would imagine you could symlink it into init.d transparently. --jcc
participants (4)
-
Alvaro Hernandez -
Andreas Jung -
J Cameron Cooper -
Maik Jablonski