From: ankry Date: Sun, 4 May 2003 20:17:11 +0000 (+0000) Subject: - cleaning X-Git-Tag: auto/ac/Zope-2_7_0-3_b2_1~46 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=92684bdc35783340a5b8b1dedeb3602d08ecfa83;p=packages%2FZope.git - cleaning Changed files: Zope.init -> 1.4 --- 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