Bug 104697 - Squid init script sends useful console startup messages to /dev/null
Squid init script sends useful console startup messages to /dev/null
Product: Red Hat Raw Hide
Classification: Retired
Component: squid (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Fenlason
Depends On:
  Show dependency treegraph
Reported: 2003-09-19 07:53 EDT by Reuben Farrelly
Modified: 2014-08-31 19:25 EDT (History)
1 user (show)

See Also:
Fixed In Version: squid-2.5.STABLE5-2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-04-05 17:17:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch to replace references to /dev/null to squid.out (759 bytes, patch)
2003-09-19 07:55 EDT, Reuben Farrelly
no flags Details | Diff

  None (edit)
Description Reuben Farrelly 2003-09-19 07:53:58 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 

Description of problem:
The initscript for squid currently reads something like this:

$SQUID $SQUID_OPTS 2> /dev/null

This is less than perfect - if squid starts up but dies soon after, nothing 
will be logged and the end user will be none the wiser as to what went wrong.  
A good example is if the permissions on the logging directory are wrong and 
squid is unable to write any log out, or if the file system is full.

This output should be logged to a file, say for 
example /var/log/squid/squid.out

Patch attached which changes the init script to resolve this issue.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Start squid
2. Silently dies and restarts...
3. Eventually it gives up ;-)

Actual Results:  Nothing is logged when ideally a console message should be.

Expected Results:  Console output or alternatively, to a log file..

Additional info:
Comment 1 Reuben Farrelly 2003-09-19 07:55:33 EDT
Created attachment 94594 [details]
Patch to replace references to /dev/null to squid.out
Comment 2 Jay Fenlason 2004-04-05 17:17:21 EDT
A similar patch is included in the latest rawhide squid RPM.

Note You need to log in before you can comment on or make changes to this bug.