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 CLIENT_HOME=/var/lib/zope
17 # See how we were called.
20 if [ -f /var/lock/subsys/zope ]; then
21 msg_Already_Running Zope
28 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/zope
32 if [ -f /var/lock/subsys/zope ]; then
34 kill `cat ${CLIENT_HOME}/Z2.pid`
38 rm -f /var/lock/subsys/zope >/dev/null 2>&1
45 if ps -p `cat ${CLIENT_HOME}/Z2.pid | awk '{print $2}'` >/dev/null; then
47 echo "Zope (pid `cat ${CLIENT_HOME}/Z2.pid`) is running"
59 msg_Usage "$0 {start|stop|status|restart}"