[EMAIL PROTECTED] wrote:

>
>And Matt, I'd be glad to help you get squidguard working.  What's the 
>problem? :-)
>
>Tim
>
>  
>
Oh boy - long story... I originally posted here with the thread "Squid
fails to launch SquidGuard". Iv'e now got a thread going on the Squid
mailing list headed "Squid with SquidGuard".

Essentially the story is this:
I have a RedHat FC4 set up. Squid works perfectly well on it but I
really wanted the extra flexibility of squidGuard. I tried installing
squidGuard from and RPM, Yum and finally by compiling from source. All
fail to work with squid.

I have changed all the file ownerships and permissions as detailed in the FAQ.

I have tried squidGuard with the simplest of SquidGuard.conf files :

logdir /var/log/squidguard
acl {
    default {
        pass all
    }
}

and the command:
# /usr/bin/squidGuard -d
2006-01-07 23:54:38 [28284] squidGuard 1.2.0 started (1136678078.397)
2006-01-07 23:54:38 [28284] squidGuard ready for requests (1136678078.400)

seems to show that squidGuard is happy...

However, as soon as I put the line:
redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
into squid.conf everything goes wrong.

In /var/log/squid/cache.log I find the following:
2006/01/07 23:51:03| helperOpenServers: Starting 5 'squidGuard' processes
2006/01/07 23:51:03| WARNING: Cannot run '/usr/bin/squidGuard' process.
2006/01/07 23:51:03| WARNING: Cannot run '/usr/bin/squidGuard' process.
2006/01/07 23:51:03| WARNING: Cannot run '/usr/bin/squidGuard' process.
2006/01/07 23:51:03| WARNING: Cannot run '/usr/bin/squidGuard' process.
2006/01/07 23:51:03| WARNING: Cannot run '/usr/bin/squidGuard' process.

Where I'm at at now (on the squid list) is as follows:

If I start squid as a runlevel 5 service, either from the command line with 
"/sbin/service squid start" (as root) or from FC4's GUI Service Configuration, 
or from boot, squid chokes on squidGuard.
If however I start it as root with the command 
"/usr/sbin/squid -NCd 1"
then magically squid works and squidGuard too!

Also, if I edit the /etc/passwd file to give "squid" a shell account (change 
squid:x:23:23::/var/spool/squid:/sbin/nologin to
squid:x:23:23::/var/spool/squid:/bin/bash)

then I can do this:
[EMAIL PROTECTED] mark]# su - squid
-bash-3.00$ /usr/local/squidguard/bin/squidGuard -d
2006-01-26 20:47:29 [6046] squidGuard 1.2.0 started (1138308449.370)
2006-01-26 20:47:29 [6046] squidGuard ready for requests (1138308449.372)

and this:
[EMAIL PROTECTED] mark]# /usr/sbin/squid
[EMAIL PROTECTED] mark]# ps -ef | grep squid
root      6017  5105  0 20:46 pts/3    00:00:00 su - squid
squid     6018  6017  0 20:46 pts/3    00:00:00 -bash
root      6195     1  0 21:11 ?        00:00:00 /usr/sbin/squid
squid     6197  6195  0 21:11 ?        00:00:00 (squid)
squid     6198  6197  0 21:11 ?        00:00:00 (squidGuard) -c 
/etc/squidguard.conf
squid     6199  6197  0 21:11 ?        00:00:00 (squidGuard) -c 
/etc/squidguard.conf
squid     6200  6197  0 21:11 ?        00:00:00 (squidGuard) -c 
/etc/squidguard.conf
squid     6201  6197  0 21:11 ?        00:00:00 (squidGuard) -c 
/etc/squidguard.conf
squid     6202  6197  0 21:11 ?        00:00:00 (squidGuard) -c 
/etc/squidguard.conf
squid     6203  6197  0 21:11 ?        00:00:00 (unlinkd)
root      6209  5055  0 21:12 pts/2    00:00:00 grep squid
[EMAIL PROTECTED] mark]#

seems to show that everything works when done this way.

Without shell access for user "squid" it still won't work.

One suggestion from the squid list was to try the command "/usr/sbin/squid" in 
the /etc/rc.d/rc.local file at boot - but as yet that still fails with the same 
error...

Grateful for your help...

Any ideas?

Mark



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to