Changed files:
squid.init -> 1.41
exit 0
fi
-# Sanity check
-[ -f /etc/squid/squid.conf ] || exit 0
-
-RETVAL=0
-# See how we were called.
-case "$1" in
- start)
+start() {
# Check if the service is already running?
if [ ! -f /var/lock/subsys/squid ]; then
msg_starting Squid
else
msg_already_running Squid
fi
- ;;
- stop)
+}
+
+stop() {
if [ -f /var/lock/subsys/squid ]; then
# Stop daemons.
msg_stopping Squid
else
msg_not_running Squid
fi
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
;;
restart)
- $0 stop
- $0 start
- exit $?
+ stop
+ start
;;
reload|force-reload)
if [ -f /var/lock/subsys/squid ]; then