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 -a "$1" != stop -a "$1" != status ]; then
26 CLIENT_HOME=/var/lib/zope
27 PIDFILE=${CLIENT_HOME}/Z2.pid
30 # See how we were called.
33 if [ ! -f /var/lock/subsys/zope ]; then
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/zope
40 msg_already_running Zope
44 if [ -f /var/lock/subsys/zope ]; then
47 kill `cat ${CLIENT_HOME}/Z2.pid`
50 [ $RET -eq 0 ] && ok || died
51 rm -f /var/lock/subsys/zope ${CLIENT_HOME}/Z2.pid >/dev/null 2>&1
57 if [ -f $PIDFILE ]; then
58 if ps -p `cat $PIDFILE` >/dev/null; then
60 nls "%s (pid %s) is running..." Zope "`cat $PIDFILE`"
62 nls "%s dead but pid file exists" Zope
66 if [ -f /var/lock/subsys/zope ]; then
67 nls "%s dead but subsys locked" Zope
70 nls "%s is stopped" Zope
81 msg_usage "$0 {start|stop|restart|force-reload|status}"