[Zope] PLEASE HELP: automatic start when system boots

Marc Fischer marcbpc@gmx.de
Wed, 22 Aug 2001 09:42:52 +0200 (MEST)


Hi, 

I have one really great problem. I just installed zope 240 on Linux Red Hat
7. So far, so good. I don't have much experience with linux, and so I have
exactlx to know, what to do for an automatic start of zope when the system
boots!

I used the following script: 
(from:
http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO)

#! /bin/sh
#
# processname: zope2

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

# Get config.
. /etc/sysconfig/network

# Check that networking is up.
if [ ${NETWORKING} = "no" ]
then
        exit 0
fi

# See how we were called.
case "$1" in
  start)
        echo -n "Starting Zope2 service: "
        daemon /usr/local/zope/2-1-2/start
        ;;
  stop)
        echo -n "Stopping Zope2 service: "
        /usr/local/zope/2-1-2/stop
        ;;
  restart|reload)
        $0 stop
        $0 start
        ;;
  *)
        echo "Usage: zope {start|stop|restart}"
        exit 1
esac

exit 0

... AND NOW THE BIG QUESTION ... 

What to do with it ?????
Hopefully anyone could tell me how EXACTLY to use it with red hat 7 for an
automated startup!
I know, that there are a lot of intros around in the net, but for me, as a
linux newbie, they are very confusing!

Btw: I just tried to copy this script to /etc/rc.d/init.d and then used
"chmod +x startzope" ... but without success!!!

Thanks for your help ...

Marc
 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net