Mahmood,
Just change the log directory as "nobody", try to execute chown -R
nobody:nobody /var/log/squid and place in you /etc/rc.d/rc.local file
#Running Squid
/usr/local/squid/bin/squid &
Thus, the "&" sign tells the command to run it in background.
janjan
"To Be or Not To Be."
Gene Frederick F. Boniel
HPS Software and Communications Corp.
Pilipino Internet - Cebu
Systems Administrator
Home Page URL : http://www.janjan.dorm.org
Email me at : [EMAIL PROTECTED]
Call/Text me at : 0917-9203704
ICQ No. : 16660287
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
>
> 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?
>
> 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 email "unsubscribe linux-admin" to [EMAIL PROTECTED]
> See the linux-admin FAQ: http://www.kalug.lug.net/linux-admin-FAQ/
>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]