[Zope] Startup with zopectl
Ben Last (Zope)
zope at benlast.com
Wed May 26 02:51:27 EDT 2004
It'll work at startup, but the beauty of the init.d system is that it'll
switch services on and off as you change runlevel, and also give you a way
to restart them. Your fix won't shut Zope down neatly. If you don't have
an init.d you may be running on a non-System V Unix.
Just in case it proves of use, here's my startup script,
/etc/rc.d/init.d/zope which manages Zope and Zeo, all in one little measure.
Marvellous!*
--start of script--
#!/bin/bash
#
# /etc/rc.d/init.d/zope
# Source function library.
. /etc/rc.d/init.d/functions
case "$1" in
start)
echo -n 'Starting zeo daemon: '
/mnt/extended/zeo/bin/zeoctl start
/mnt/extended/zeo/bin/zeoctl status
echo -n 'Starting zope daemon: '
/mnt/extended/floofs/bin/zopectl start
;;
stop)
echo -n 'Stopping zope daemon: '
/mnt/extended/floofs/bin/zopectl stop
echo -n 'Stopping zeo daemon: '
/mnt/extended/zeo/bin/zeoctl stop
;;
reload|restart)
$0 stop
$0 start
;;
status)
echo -n 'zeo daemon: '
/mnt/extended/zeo/bin/zeoctl status
echo -n 'zope daemon: '
/mnt/extended/floofs/bin/zopectl status
;;
*)
echo "Usage: /etc/rc.d/init.d/zope
{start|stop|restart|reload|status}"
exit 1
esac
exit 0
--end of script--
*That was a Brit culture joke. Apologies.
More information about the Zope
mailing list