]> git.pld-linux.org Git - packages/squid.git/commitdiff
- functins, force-reload should be same as restart as i understand it
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 23 Nov 2007 12:07:00 +0000 (12:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    squid.init -> 1.46

squid.init

index 695a695073962532e94d762deeeff9b7510d0fbe..8495da5368663d6f79f9d7d12da76d757257a831 100644 (file)
@@ -100,20 +100,7 @@ stop() {
        fi
 }
 
-RETVAL=0
-# See how we were called.
-case "$1" in
-  start)
-       start
-       ;;
-  stop)
-       stop
-       ;;
-  restart)
-       stop
-       start
-       ;;
-  reload|force-reload)
+reload() {
        if [ -f /var/lock/subsys/squid ]; then
                msg_reloading Squid
                busy
@@ -125,6 +112,23 @@ case "$1" in
                msg_not_running Squid >&2
                exit 7
        fi
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+  start)
+       start
+       ;;
+  stop)
+       stop
+       ;;
+  restart|force-reload)
+       stop
+       start
+       ;;
+  reload)
+       reload
        ;;
   status)
        status squid
This page took 0.246605 seconds and 4 git commands to generate.