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 # Source networking configuration.
14 . /etc/sysconfig/network
16 # Check that networking is up.
17 if is_yes "${NETWORKING}"; then
18 if [ ! -f /var/lock/subsys/network ]; then
26 CLIENT_HOME=/var/lib/zope
30 # See how we were called.
33 if [ -f /var/lock/subsys/zope ]; then
34 msg_already_running Zope
41 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/zope
45 if [ -f /var/lock/subsys/zope ]; then
47 kill `cat ${CLIENT_HOME}/Z2.pid`
51 rm -f /var/lock/subsys/zope >/dev/null 2>&1
58 if ps -p `cat ${CLIENT_HOME}/Z2.pid | awk '{print $2}'` >/dev/null; then
60 nls "Zope (pid %s) is running" "`cat ${CLIENT_HOME}/Z2.pid`"
71 msg_usage "$0 {start|stop|restart|reload|status}"