]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Fixed squid init warning, now skipping start if running
authorManiacikarus <maniacikarus.ipfire.org>
Wed, 30 Jul 2008 18:44:06 +0000 (20:44 +0200)
committerManiacikarus <maniacikarus.ipfire.org>
Wed, 30 Jul 2008 18:44:06 +0000 (20:44 +0200)
config/rootfiles/updater/filelists/core16
src/initscripts/init.d/squid

index c1037315588243c0626f248686daa5379889ee7b..db546e505bb446092a33e28f86be8394f6b62e19 100644 (file)
@@ -1,5 +1,6 @@
 opt/pakfire/db/core/mine
 etc/init.d/mISDN
+etc/init.d/squid
 etc/ppp/ip-up
 etc/modprobe.d/blacklist
 usr/bin/bc
index e1a49d28e231634bd992b74dd975267b709e2328..25fcac0c4eff2f77e286ecf03177a9532bdcb77f 100644 (file)
@@ -47,6 +47,14 @@ transparent() {
 
 case "$1" in
        start)
+               getpids "squid"
+
+               if [ -n "${pidlist}" ]; then
+                       echo -e "Squid is already running with Process"\
+                               "ID(s) ${pidlist}.${NORMAL}"
+               evaluate_retval
+               exit
+               fi
                if [ -e /var/ipfire/proxy/enable -o -e /var/ipfire/proxy/enable_blue ]; then
                        boot_mesg "Starting Squid Proxy Server..."
                        loadproc /usr/sbin/squid -D -z >/dev/null 2>&1