From 92684bdc35783340a5b8b1dedeb3602d08ecfa83 Mon Sep 17 00:00:00 2001 From: ankry Date: Sun, 4 May 2003 20:17:11 +0000 Subject: [PATCH] - cleaning Changed files: Zope.init -> 1.4 --- Zope.init | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Zope.init b/Zope.init index 754fdf7..1443d58 100644 --- a/Zope.init +++ b/Zope.init @@ -10,6 +10,19 @@ # Source function library. . /etc/rc.d/init.d/functions +# Source networking configuration. +. /etc/sysconfig/network + +# Check that networking is up. +if is_yes "${NETWORKING}"; then + if [ ! -f /var/lock/subsys/network ]; then + msg_network_down Zope + exit 1 + fi +else + exit 0 +fi + CLIENT_HOME=/var/lib/zope RETVAL=0 @@ -55,7 +68,7 @@ case "$1" in $0 start ;; *) - msg_Usage "$0 {start|stop||restart|reload|status}" + msg_usage "$0 {start|stop|restart|reload|status}" exit 1 ;; esac -- 2.44.0