Re: [squid-users] squid won't start on boot

From: Sébastien WENSKE <canardwc_at_canardwc.com>
Date: Wed, 23 Jul 2008 16:58:24 +0200

Thanks Angela,

But I've found the problem, in RedHat EL there is SELINUX, I have just
disable it and it works fine

Thanks All,

Sébastien.
----- Original Message -----
From: "Angela Williams" <angie_at_eoh.co.za>
To: <squid-users_at_squid-cache.org>
Sent: Wednesday, July 23, 2008 4:19 PM
Subject: Re: [squid-users] squid won't start on boot

On Wednesday 23 July 2008, Sébastien WENSKE wrote:
> Hi guys,
>
> Iget some troubles with squid3-stable8 when I try ti enable it on boot
>
> Starting squid: WARNING: Cannot write log file: /var/logs/cache.log
> /var/logs/cache.log: Permission denied
> [...]
> squid: ERROR: Could not read pid file
> /var/logs/squid.pid: (13) Permission denied
>
> It work fine when I start it manualy.
>
> You can find below what i did :
>
> ./configure --localstatedir=/var --prefix=/usr --exec-prefix=/usr
> --sysconfdir=/etc/squid/ --enable-icmp --enable-arp-acl
> --with-default-user=squid
> make
> make install
> adduser squid
> mkdir /var/logs
> mkdir /var/cache
> chown -R squid.squid /var/logs
> chown -R squid.squid /var/cache
> /usr/sbin/squid -z
>
> OS is RedHat EL 5.1
>
> What's wrong ?

Quick guess? When you test squid as root squid created the cache.log as
owner
root! Now that you are starting squid from an rc script it runs as user
squid
so needless to say cannot write a file created by root!
Try linux101!!
chown squid.squid /var/logs/cache.log
chown -R squid.squid /var/cache
Check the perms and ownerships on the rest of your files in /var/logs!

Cheers
Ang

-- 
Angela Williams Enterprise Outsourcing
Unix/Linux & Cisco spoken here! Bedfordview
awilliams_at_eoh.co.za Gauteng South Africa
Smile!! Jesus Loves You!!
Received on Wed Jul 23 2008 - 14:58:41 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 23 2008 - 12:00:05 MDT