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

boa.init

index 7942f580d5444c7f5ca94fc01c23a41ff9cbf7e8..c73e189737cc39b9a6ade02f8acd5ba13c083119 100644 (file)
--- a/boa.init
+++ b/boa.init
 [ -f /etc/sysconfig/boa ] && . /etc/sysconfig/boa
 
 # Check that networking is up.
-if is_no "${NETWORKING}"; then
-       msg_network_down "Boa httpd"
-       exit 1
+if is_yes "${NETWORKING}"; then
+       if [ ! -f /var/lock/subsys/network ]; then
+               msg_network_down "Boa httpd"
+               exit 1
+       fi
+else
+       exit 0
 fi
 
 
@@ -38,9 +42,9 @@ case "$1" in
                msg_already_running "Boa httpd"
                exit 1
        fi
-        ;;
+       ;;
   stop)
-        # Stop daemons.
+       # Stop daemons.
        if [ -f /var/lock/subsys/boa ]; then
                msg_stopping "Boa httpd"
                killproc boa
@@ -49,11 +53,11 @@ case "$1" in
                msg_not_running "Boa httpd"
                exit 1
        fi      
-        ;;
+       ;;
   restart)
-        $0 stop
+       $0 stop
        $0 start
-        ;;
+       ;;
   reload)
        if [ -f /var/lock/subsys/boa ]; then
                msg_show "Boa httpd"
@@ -74,7 +78,7 @@ case "$1" in
   status)
        status boa
        exit $?
-        ;;
+       ;;
   *)
        msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
        exit 1
This page took 0.071575 seconds and 4 git commands to generate.