Package: squid Version: 2.6.5-6 Severity: normal Tags: patch
When using the following storage methods in /etc/squid.conf: cache_dir coss /dev/mapper/iostat-squid 1024 max-size=131072 cache_swap_log /var/spool/squid/%s cache_dir diskd /var/spool/squid 3500 64 256 (this is the only configuration changes from the default config) The following thing happens on start: [EMAIL PROTECTED]:~$ sudo /etc/init.d/squid start Starting Squid HTTP proxy: squid/etc/init.d/squid: line 100: cd: /dev/mapper/iostat-squid: Not a directory . (/dev/mapper/iostat-squid is a block device. "iostat" is the name of my volume group, "squid" is the logical volume name) The "cd" to the storage dir is not necessary, since squid will change directory to / anyway, and since the storage will not be a directory when using the "coss" storage method. [EMAIL PROTECTED]:~$ sudo /etc/init.d/squid start [EMAIL PROTECTED]:~$ pgrep -lf squid 20065 /usr/sbin/squid -D -sYC [EMAIL PROTECTED]:~$ sudo ls -l /proc/20065/cwd lrwxrwxrwx 1 root root 0 2007-10-16 10:05 /proc/20065/cwd -> / -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-486 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages squid depends on: ii adduser 3.102 Add and remove users and groups ii coreutils 5.97-5.3 The GNU core utilities ii debconf [debconf-2.0] 1.5.11 Debian configuration management sy ii libc6 2.3.6.ds1-13etch2 GNU C Library: Shared libraries ii libdb4.4 4.4.20-8 Berkeley v4.4 Database Libraries [ ii libldap2 2.1.30-13.3 OpenLDAP libraries ii libpam0g 0.79-4 Pluggable Authentication Modules l ii logrotate 3.7.1-3 Log rotation utility ii lsb-base 3.1-23.2etch1 Linux Standard Base 3.1 init scrip ii netbase 4.29 Basic TCP/IP networking system ii squid-common 2.6.5-6 Internet Object Cache (WWW proxy c squid recommends no packages. -- debconf information: squid/fix_cachedir_perms: false squid/largefiles_warning: squid/anonymize_headers: squid/authenticate_program: squid-cgi/cachemgr: squid/fix_lines: true squid/old_version: false squid/http_anonymizer: *** /tmp/_etc_init_d_squid.patch --- /etc/init.d/squid.orig 2007-10-16 09:49:45.000000000 +0200 +++ /etc/init.d/squid 2007-10-16 10:02:43.000000000 +0200 @@ -97,7 +97,6 @@ maxfds umask 027 - cd $cdr start-stop-daemon --quiet --start \ --pidfile $PIDFILE \ --chuid $CHUID \ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]