3 # zope Start/Stop the Zope web-application server.
5 # chkconfig: 2345 72 72
6 # description: zope is a web server specifically for handling \
7 # HTTP requests to the Zope web-application service.
10 # Source function library.
11 . /etc/rc.d/init.d/functions
13 ZOPE_HOME=/usr/lib/zope
14 INSTANCE_HOME=/var/lib/zope
15 INSTANCE_NAME=`basename ${INSTANCE_HOME}`
19 # See how we were called.
22 if [ -f /var/lock/subsys/zope ]; then
23 msg_Already_Running Zope
30 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/zope
34 if [ -f /var/lock/subsys/zope ]; then
36 kill `cat ${INSTANCE_HOME}/Z2.pid`
40 rm -f /var/lock/subsys/zope >/dev/null 2>&1
47 if ps -p `cat ${INSTANCE_HOME}/Z2.pid | awk '{print $2}'` >/dev/null; then
49 echo "Zope (pid `cat ${INSTANCE_HOME}/Z2.pid`) is running"
61 msg_Usage "$0 {start|stop|status|restart}"