[Zope] Startup script for Zope 2.x on RedHat Linux 6.0
Svante Kleist
Svante.Kleist@NEMESIS.se
Mon, 30 Aug 1999 17:03:15 +0200
If you study the "start" script, you'll see that it
calls "z2.py" with the "-D" option. "z2.py" tells you:
- - -
-D
Run in Zope debug mode. This causes the Zope process not to
detach from the controlling terminal, and is equivalent to
supplying the environment variable setting Z_DEBUG_MODE=1
- - -
So just remove this option and "start" will detach.
I have a file "/etc/rc.d/init.d/zope" like so:
- - -
#!/bin/sh
#
# description: Runs Zope
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
echo -n "Starting Zope: "
touch /var/lock/subsys/zope
daemon /usr/local/src/Zope/start
echo
;;
stop)
echo -n "Shutting down Zope: "
/usr/local/src/Zope/stop
rm -f /var/lock/subsys/zope
echo
;;
status)
status zope
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: zope {start|stop|status|restart}"
exit 1
esac
exit 0
# EOF
/ Svante Kleist - NEMESIS systemDesign, Stockholm
-- Suder Steen SFS <sfs@sciatl.dk> wrote:
: Hi,
:
: I'm looking for a script to start my Zope system on a RH6
: system.
:
: The "start" script is nice, but it doesn't detach from the
: console.
:
: Does anyone have an example, a working script or
: suggestions?
:
: Best regards,
: Steen Suder
: Zope newbie
:
: _______________________________________________
: 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 )