Bug#282042: apache-common/logs incorrectly complains about logging to pipes
Package: apache-common
Version: 1.3.33-2.1
Severity: wishlist
Tags: patch
Dear Maintainers,
In our apache setup, we log to a program. This program transports messages to a logserver, which than processes the
logentries. This is working fine.
While upgrading apache, the postinst scripts prompt me with a message that apache has switched to logrotate and logfiles
should be situated in /var/log and nowhere else. While this could potentially be a very useful message, all my logfiles are
in /var/log/, except for my pipe ofcourse. While investigating the situation, I wrote up this quick patch to make
postinst.common not croak when encountering pipes. This should confuse fewer users.
Please apply.
Regards,
Allard
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8.1-byte
Locale: LANG=C, LC_CTYPE=C
Versions of packages apache-common depends on:
ii apache-utils 1.3.33-2.1 Utility programs for webservers
ii debconf 1.4.30.10 Debian configuration management sy
ii elinks [www-browser] 0.9.1+0.9.2pre4-1 Character mode WWW/FTP browser
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an
ii libdb4.2 4.2.52-17 Berkeley v4.2 Database Libraries [
ii libexpat1 1.95.8-1 XML parsing C library - runtime li
ii lynx [www-browser] 2.8.5-2 Text-mode WWW Browser
ii mime-support 3.28-1 MIME files 'mime.types' & 'mailcap
ii perl 5.8.4-3 Larry Wall's Practical Extraction
ii sed 4.1.2-1 The GNU sed stream editor
ii ucf 1.13 Update Configuration File: preserv
-- debconf information:
apache-common/confignotes:
apache-common/old-logrotate-exists:
* apache-common/logs:
apache-shared/debconf-modules: mod_userdir, mod_status, mod_ssl, mod_setenvif, mod_rewrite, mod_negotiation, mod_mime_magic, mod_mime, mod_log_config, mod_include, mod_env, mod_dir, mod_cgi, mod_autoindex, mod_auth, mod_alias, mod_actions, mod_access, mod_php4
apache-shared/restart: false
Index: listlogfiles
===================================================================
--- listlogfiles (revision 102)
+++ listlogfiles (working copy)
@@ -42,7 +42,7 @@
# take away surrounding ' and "
$file =~ s/[\"\']//g;
- if ($file !~ m|^/var/log/| ) {
+ if ($file !~ m!^(?:/var/log/|\|)! ) {
# $errorcondition++; # uncomment this if you prefer count of errors
$errorcondition = 1;
print "Wrong log file definition in $conf: $_" if $printerrorfile;
Reply to: