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