[Zope] Zope and System V init

Chris McDonough chris@iqgroup.com
Mon, 27 Sep 1999 14:24:38 -0400


Here's what I use (/etc/rc.d/init.d/zope with a symlink at
/etc/rc.d/rc3.d/S87zope)

#! /bin/sh
#
# zope          Start/Stop the Zope web-application server.
#
# chkconfig: 2345 72 72
# description: zope is a web server specifically for handling
#              HTTP requests to the Zope web-application service.
# processname: zserver
# pidfile: /var/run/zserver.pid

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
    echo -n "Starting Zope (Medusa): "
    cd /usr/local/Zope-2.0.0/
    daemon ./start &> /dev/nul &
    echo
    touch /var/lock/subsys/zope
    ;;
  stop)
    echo -n "Stopping zserver daemon: "
    cd /usr/local/Zope-2.0.0/
    ./stop
    echo
    rm -f /var/lock/subsys/zope
    ;;
  restart)
    $0 stop
    $0 start
    ;;
  *)
    echo "Usage: zope {start|stop|restart}"
    exit 1
esac

exit 0

-----Original Message-----
From: Ulrich Wisser [mailto:u.wisser@luna-park.de]
Sent: Monday, September 27, 1999 10:56 AM
To: zope@zope.org
Subject: [Zope] Zope and System V init


Hello,

my Linuxbox is not running 24/7. Normally it is booted once 
a day. My database (Oracle) is started with an System V 
init script at boottime. Is there such a script for Zope?

So long

Ulli

PS: Wouldn't that be a wonderful How-To?

-- 
----------------- Die Website Effizienzer ------------------
luna-park                Bravo Sanchez, Vollmert, Wisser GbR
Ulrich Wisser                   mailto:u.wisser@luna-park.de
Alter Schlachthof, Immenburgstr. 20      Tel +49-228-9654055
D-53121 Bonn                             Fax +49-228-9654057
------------------http://www.luna-park.de ------------------



_______________________________________________
Zope maillist  -  Zope@zope.org
http://www.zope.org/mailman/listinfo/zope

(To receive general Zope announcements, see:
http://www.zope.org/mailman/listinfo/zope-announce

For developer-specific issues, zope-dev@zope.org -
http://www.zope.org/mailman/listinfo/zope-dev )