Re: squid problem help
>I suspect you are trying to run squid two times. >The second time you recieve http port is already allocated (the first >squid) and the log file is locked (the first squid again. >If you want to use squid -k ... commands run "rm >/usr/local/squid/var/logs/squid.pid" as root and restart squid :) Yes, you are right, I realized I was running the squid two times, the first as squid user and the second as root. I don't understand why it was happening, Squid only was called from /etc/rc.conf. At the end I reinstalled it from www/squid port as told me Andrew P. and it works fine Thanks... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: squid problem help
I suspect you are trying to run squid two times. The second time you recieve http port is already allocated (the first squid) and the log file is locked (the first squid again. If you want to use squid -k ... commands run "rm /usr/local/squid/var/logs/squid.pid" as root and restart squid :) Ivailo Tanusheff Senior System administrator ProCredit Bank (Bulgaria) AD "Efren Bravo" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 10/17/2005 08:30 PM To freebsd-questions@freebsd.org cc Subject squid problem help Hi, I've those errors when I try to start squid from /etc/rc.conf. I've a squid user and group. rc.conf --- if [ -f /usr/local/squid/sbin/squid ]; then echo -n ' Squid' /usr/local/squid/sbin/squid fi squid.conf -- http_port 192.168.190.10:3128 cache_effective_user squid cache_effective_group squid Console errors -- (squid) cannot open HTTP port (squid) cannot open /usr/local/squid/var/logs/access.log for writting, the parent directory must be writeable for user 'squid' Directories --- proxy# ll /usr/local/squid/var total 4 drwxr-xr-x 18 squid squid 512 Oct 17 12:12 cache drwxr-xr-x 2 squid squid 512 Oct 17 12:10 logs proxy# ll /usr/local/squid/var/logs total 52 -rw-r--r-- 1 squid squid 13479 Oct 17 12:10 access.log -rw-r--r-- 1 squid squid 15482 Oct 17 12:12 cache.log -rw-r--r-- 1 root squid 4 Oct 17 12:12 squid.pid -rw-r--r-- 1 squid squid 19330 Oct 17 12:10 store.log #dmesg pid 689 (squid), uid 2: exited on signal 6 Nevertheless the squid works, I don't understand what happens Could you help me? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: squid problem help
On 10/17/05, Efren Bravo <[EMAIL PROTECTED]> wrote: > Hi, > > I've those errors when I try to start squid from /etc/rc.conf. I've a > squid user and group. > > rc.conf > --- > if [ -f /usr/local/squid/sbin/squid ]; then > echo -n ' Squid' > /usr/local/squid/sbin/squid > fi > > squid.conf > -- > http_port 192.168.190.10:3128 > cache_effective_user squid > cache_effective_group squid > > Console errors > -- > (squid) cannot open HTTP port > (squid) cannot open /usr/local/squid/var/logs/access.log for writting, the > parent directory must be writeable for user 'squid' > > Directories > --- > proxy# ll /usr/local/squid/var > total 4 > drwxr-xr-x 18 squid squid 512 Oct 17 12:12 cache > drwxr-xr-x 2 squid squid 512 Oct 17 12:10 logs > > proxy# ll /usr/local/squid/var/logs > total 52 > -rw-r--r-- 1 squid squid 13479 Oct 17 12:10 access.log > -rw-r--r-- 1 squid squid 15482 Oct 17 12:12 cache.log > -rw-r--r-- 1 root squid 4 Oct 17 12:12 squid.pid > -rw-r--r-- 1 squid squid 19330 Oct 17 12:10 store.log > > #dmesg > pid 689 (squid), uid 2: exited on signal 6 > > Nevertheless the squid works, I don't understand what happens > Could you help me? > > Thanks > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > Wow. Have you tried installing www/squid port, adding squid_enable="YES" to /etc/rc.conf and running /usr/local/etc/rc.d/squid.sh start? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
squid problem help
Hi, I've those errors when I try to start squid from /etc/rc.conf. I've a squid user and group. rc.conf --- if [ -f /usr/local/squid/sbin/squid ]; then echo -n ' Squid' /usr/local/squid/sbin/squid fi squid.conf -- http_port 192.168.190.10:3128 cache_effective_user squid cache_effective_group squid Console errors -- (squid) cannot open HTTP port (squid) cannot open /usr/local/squid/var/logs/access.log for writting, the parent directory must be writeable for user 'squid' Directories --- proxy# ll /usr/local/squid/var total 4 drwxr-xr-x 18 squid squid 512 Oct 17 12:12 cache drwxr-xr-x 2 squid squid 512 Oct 17 12:10 logs proxy# ll /usr/local/squid/var/logs total 52 -rw-r--r-- 1 squid squid 13479 Oct 17 12:10 access.log -rw-r--r-- 1 squid squid 15482 Oct 17 12:12 cache.log -rw-r--r-- 1 root squid 4 Oct 17 12:12 squid.pid -rw-r--r-- 1 squid squid 19330 Oct 17 12:10 store.log #dmesg pid 689 (squid), uid 2: exited on signal 6 Nevertheless the squid works, I don't understand what happens Could you help me? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"