On Mon, 27 Sep 1999, Arshad Mahmood wrote:

> 
> I am using Squid2.2.STABLE4 and running squid daemon as user "squid" which
> belongs to group "squid" as it is recommended. If I su squid and run the
> daemon from prompt it runs with no problem. The problem is that I want to
> run the squid daemon at boot time and  for starting the daemon at boot
> time I edit the file /etc/rc.d/rc.local and add these two lines 
> echo "Running Squid-2.2"
> /usr/local/squid/bin/squid
> and reboot the system. After rebooting the daemon do not start. I edit the
> log file /var/log/messages it shows
> Sep 27 11:00:17 proliant squid[670]: Squid Parent: child process 731
> started
> Sep 27 11:00:17 proliant (squid): Cannot open /var/log/squid/access.log:
> (13) Permission denied.
> The permissions for /var/log/squid directory are
> 
> ~#ls -l /var/log/squid
> 
> total 516
> -rw-r--r--   1 squid    squid      293672 Sep 27 10:41 access.log
> -rw-r--r--   1 squid    squid      171409 Sep 27 11:34 cache.log
> -rw-r--r--   1 squid    squid         543 Sep  9 19:47 store.log
> -rw-r--r--   1 squid    squid       55344 Sep 27 11:34 swap.log.00
> 

Check to see if the parent directory is owned by squid.

> I think the problem is that when system boots it tries to start squid
> daemon and tries to write in file /var/log/squid/access.log which is log
> file for squid cache server. And it can not write.
> Is there any possible way that squid can be run as a user squid and at the
> same time I can run the daemon whenever the machine reboot? 

Edit squid.conf and you will find that you can run as user squid.
I don't know exactly the option name.

> 
> Arshad Mahmood.
> Assistant Internet Engineer.
> -----------------------------------------------------------------------------
> Sustainable Development Networking Programme
> House 12, Street 85, G-6/4 Islamabad Pakistan.    Phone:92-051-270684   
> Email:[EMAIL PROTECTED]                          92-051-270691
> ----------------------------------------------------------------------------
> 
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
> 

---
Catalin(ux) BOIE
[EMAIL PROTECTED]
http://www2.deuroconsult.ro/~catab
Fax: (561) 760-6212
ICQ: 45443500

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to