]> git.pld-linux.org Git - packages/Zope.git/commitdiff
- cleaning
authorankry <ankry@pld-linux.org>
Sun, 4 May 2003 20:17:11 +0000 (20:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Zope.init -> 1.4

Zope.init

index 754fdf7f9dfc4105d5623e5f29f2c1b9ed921249..1443d58917813498c7c9c587f3342a1287ef6a17 100644 (file)
--- a/Zope.init
+++ b/Zope.init
 # 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
This page took 0.039147 seconds and 4 git commands to generate.