Search squid archive

Re: Cache_access_log for Squid 2.5STABLE6 unable to write to /dev/stdout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Henrik Nordstrom wrote:
On Tue, 20 Sep 2005, marlowe wrote:

I am working on a solution to run squid with daemontools and allow multilog to log cache_access_log. I am able to run squid with daemontools. When I attempted to set cache_access_log to /dev/stdout, I received the following error message:

FATAL: Cannot open '/dev/stdout' for writing. The parent directory must be writeable by the user 'squid', which is the cache_effective_user set in squid.conf


Should work, but make sure you include the -N option when starting Squid (without -N there is no stdout...). Also make sure /dev/stdout exists and is writeable..

Regards
Henrik

Henrik,

My start script reads as below

#!/bin/sh
exec 2>&1
exec squid -f /etc/squid/squid.conf -N

I set the following line in /etc/squid/squid.conf

cache_access_log /dev/stdout

I set the write bit for other in the /dev/ directory. The permissions on /dev read

drwxr-xrwx    9 root root    4620 Sep 20 14:57 dev

I also set the write bit for other for /dev/stdout. On CentOS 4.1, /dev/stdout is a symlink for /proc/self/fd/1 which is in turn a symlink for /dev/pts/0. The permissions on /dev/pts/0 are as follows

crw--w-w-    1 marlowe tty 136, 0 Sep 20 16:51 /dev/pts/0

It is my understand that with these other write permissions in place, the user squid should be able to write to /dev/stdout. However when I attempt to start squid, I still receive the same error message. I tried to run my start script from the CLI and received the same error messages. What else should I be looking at?

Thanks,
Patrick


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux