[zopeorg-checkins] CVS: NZO_SiteLayout/rc - zope_server.rc.in:1.1
Chris McDonough
chrism at zope.com
Wed May 1 18:45:14 EDT 2002
Update of /cvs-zopeorg/NZO_SiteLayout/rc
In directory cvs.zope.org:/tmp/cvs-serv26146/rc
Added Files:
zope_server.rc.in
Log Message:
Checkppoint.
=== Added File NZO_SiteLayout/rc/zope_server.rc.in ===
#!/bin/sh
# Startup script for ZEO using zeoctl
# by Chris McDonough (chrism at zope.com)
#
# chkconfig: 2345 80 20
# description: ZEO, the distributed Zope Object Database
# Source function library.
. /etc/rc.d/init.d/functions
zeoctl="<<BASE_DIR>>/bin/zeoctl"
name="zeo_server"
[ -f $zeoctl ] || exit 1
RETVAL=0
start() {
echo -n $"Starting $name: "
$zeoctl start
RETVAL=$?
echo
return $RETVAL
}
stop() {
echo -n $"Stopping $name: "
$zeoctl stop
RETVAL=$?
echo
return $RETVAL
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit $REVAL
More information about the zopeorg-checkins
mailing list