action="$3"
errors=""
typeset -i exit_code=0
-
+
show "$message"; busy
if ! cd "$instance_home/var" 2>/dev/null ; then
fail
if [ -f /var/lock/subsys/"zope3-$INSTANCE_NAME" ]; then
msg_already_running "Zope 3 instance $INSTANCE_NAME"
- continue
+ continue
fi
zope_ctl "Starting Zope instance $INSTANCE_NAME" "$INSTANCE_HOME" start
if [ ! -f /var/lock/subsys/"zope3-$INSTANCE_NAME" ]; then
msg_not_running "Zope 3 instance $INSTANCE_NAME"
- continue
+ continue
fi
-
+
zope_ctl "Stopping Zope instance $INSTANCE_NAME" "$INSTANCE_HOME" stop
RET=$?
if [ "$RETVAL" = 0 ] ; then
msg_starting "Zope 3"
ok
- touch /var/lock/subsys/zope
+ touch /var/lock/subsys/zope3
else
msg_starting "Zope 3"
fail
fi
;;
stop)
- if [ -f /var/lock/subsys/zope ]; then
+ if [ -f /var/lock/subsys/zope3 ]; then
msg_stopping "Zope 3"
started
stop_instances
msg_stopping "Zope 3"
fail
fi
- rm -f /var/lock/subsys/zope >/dev/null 2>&1
+ rm -f /var/lock/subsys/zope3 >/dev/null 2>&1
else
msg_not_running "Zope 3"
exit 1