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

cups.init

index cb688b508fdd6205f8347d118a0043a55a3cccf3..03e0849345f7da10faaf66cd9186f54aee0688b2 100644 (file)
--- a/cups.init
+++ b/cups.init
 [ -f /etc/sysconfig/cups ] && . /etc/sysconfig/cups
 
 # Check that networking is up.
-if is_no "${NETWORKING}"; then
-       msg_network_down CUPS
-       exit 1
+if is_yes "${NETWORKING}"; then
+       if [ ! -f /var/lock/subsys/network ]; then
+               msg_network_down CUPS
+               exit 1
+       fi
+else
+       exit 0
 fi
 
 # See how we were called.
@@ -57,6 +61,8 @@ case "$1" in
                msg_reloading CUPS
                busy
                killproc cupsd -HUP
+               RETVAL=$?
+               [ $RETVAL -eq 0 ] && ok || died
        else
                msg_not_running CUPS
                exit 1
This page took 0.923536 seconds and 4 git commands to generate.