Fixed squid init warning, now skipping start if running

This commit is contained in:
Maniacikarus
2008-07-30 20:44:06 +02:00
parent a68768877a
commit 8b2027902e
2 changed files with 9 additions and 0 deletions

View 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

View 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