Red Hat Bugzilla – Bug 70785
/etc/sysconfig/squid should specify SQUID_PIDFILE_TIMEOUT
Last modified: 2014-03-16 22:29:45 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020724
Description of problem:
The /etc/sysconfig/squid file does not specify the variable
SQUID_PIDFILE_TIMEOUT. This variable is expected by the /etc/rc.d/init.d/squid
startscript. The startscript does not provide any default so a shell syntax
error message occurs when the script is run with "start" as the first parameter.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Be root and RPM-install squid from the "limbo" distribution.
2.Type `/etc/rc.d/init.d/squid start'
Actual Results: Error message seen, "/etc/rc.d/init.d/squid: line 65: [: 0:
unary operator expected".
Expected Results: No such error message.
Workaround: Append something like "SQUID_PIDFILE_TIMEOUT=3600" to
To fix the bug it may be a good idea to make the /etc/rc.d/init.d/squid script
permissive so that if the variable is not specified in /etc/sysconfig/squid it
will be automatically declared and given a reasonable default value.
I am leaving the severity as "normal" since I have not investigated what the
consequences of the bug really are. Perhaps the severity could be "low"; at
least it seems that the squid process starts and can be stopped in an orderly
fashion even if the workaround is not applied.
*** This bug has been marked as a duplicate of 70065 ***