[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#576105: marked as done (apache2.2-common: logrotate configuration seems outdated)



Your message dated Tue, 20 Apr 2010 21:48:48 +0000
with message-id <E1O4LJI-0004qn-KK@ries.debian.org>
and subject line Bug#576105: fixed in apache2 2.2.15-4
has caused the Debian Bug report #576105,
regarding apache2.2-common: logrotate configuration seems outdated
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
576105: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576105
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apache2.2-common
Version: 2.2.14-7
Severity: minor
Tags: patch


I was looking at my /etc/logrotate.d/apache2 and noticed that there are some
interesting things done in the postrotate script section. Perhaps I'm missing
something, but it looks to me like the entire conditional can be thrown out, 
and for good measure the call to /etc/init.d/apache2 ought to be replaced with
invoke-rc.d. Here's a patch demonstrating my intent:

=== begin patch ===
diff -u a/apache2 b/apache2
--- a/apache2   2010-03-31 18:08:47.000000000 -0400
+++ b/apache2   2010-03-31 18:08:44.000000000 -0400
@@ -11,8 +11,6 @@
    create 640 root adm
    sharedscripts
    postrotate
-       if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
-           /etc/init.d/apache2 reload > /dev/null
-       fi
+       invoke-rc.d apache2 reload > /dev/null
    endscript
 }
=== end patch ===

My assumption is that the [ -f "foo" ] conditional exists to see if apache is
running before restarting it. If that assumption is valid, I would point out
that the init script that I've got from 2.2.14-7 gracefully exits with code 0 
and no error when apache is stopped and `invoke-rc.d apache2 reload` is called.

Never used reportbug before, so here's hoping it all works out.

Thanks for your time.

-- Package-specific info:
List of enabled modules from 'apache2 -M':
  alias auth_basic authn_file authz_default authz_groupfile
  authz_host authz_user autoindex cgid deflate dir env ldap mime
  negotiation setenvif ssl status userdir wsgi

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-xen-686 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages apache2.2-common depends on:
ii  apache2-utils                 2.2.14-7   utility programs for webservers
ii  apache2.2-bin                 2.2.14-7   Apache HTTP Server common binary f
ii  libmagic1                     5.04-1     File type determination library us
ii  lsb-base                      3.2-23     Linux Standard Base 3.2 init scrip
ii  mime-support                  3.48-1     MIME files 'mime.types' & 'mailcap
ii  perl                          5.10.1-11  Larry Wall's Practical Extraction 
ii  procps                        1:3.2.8-8  /proc file system utilities

Versions of packages apache2.2-common recommends:
ii  ssl-cert                      1.0.25     simple debconf wrapper for OpenSSL

Versions of packages apache2.2-common suggests:
pn  apache2-doc            <none>            (no description available)
pn  apache2-suexec | apach <none>            (no description available)
ii  conkeror [www-browser] 0.9.1+git100220-1 keyboard focused web browser with 

Versions of packages apache2.2-common is related to:
pn  apache2-mpm-event             <none>     (no description available)
pn  apache2-mpm-itk               <none>     (no description available)
pn  apache2-mpm-prefork           <none>     (no description available)
ii  apache2-mpm-worker            2.2.14-7   Apache HTTP Server - high speed th

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: apache2
Source-Version: 2.2.15-4

We believe that the bug you reported is fixed in the latest version of
apache2, which is due to be installed in the Debian FTP archive:

apache2-dbg_2.2.15-4_i386.deb
  to main/a/apache2/apache2-dbg_2.2.15-4_i386.deb
apache2-doc_2.2.15-4_all.deb
  to main/a/apache2/apache2-doc_2.2.15-4_all.deb
apache2-mpm-event_2.2.15-4_i386.deb
  to main/a/apache2/apache2-mpm-event_2.2.15-4_i386.deb
apache2-mpm-itk_2.2.15-4_i386.deb
  to main/a/apache2/apache2-mpm-itk_2.2.15-4_i386.deb
apache2-mpm-prefork_2.2.15-4_i386.deb
  to main/a/apache2/apache2-mpm-prefork_2.2.15-4_i386.deb
apache2-mpm-worker_2.2.15-4_i386.deb
  to main/a/apache2/apache2-mpm-worker_2.2.15-4_i386.deb
apache2-prefork-dev_2.2.15-4_i386.deb
  to main/a/apache2/apache2-prefork-dev_2.2.15-4_i386.deb
apache2-suexec-custom_2.2.15-4_i386.deb
  to main/a/apache2/apache2-suexec-custom_2.2.15-4_i386.deb
apache2-suexec_2.2.15-4_i386.deb
  to main/a/apache2/apache2-suexec_2.2.15-4_i386.deb
apache2-threaded-dev_2.2.15-4_i386.deb
  to main/a/apache2/apache2-threaded-dev_2.2.15-4_i386.deb
apache2-utils_2.2.15-4_i386.deb
  to main/a/apache2/apache2-utils_2.2.15-4_i386.deb
apache2.2-bin_2.2.15-4_i386.deb
  to main/a/apache2/apache2.2-bin_2.2.15-4_i386.deb
apache2.2-common_2.2.15-4_i386.deb
  to main/a/apache2/apache2.2-common_2.2.15-4_i386.deb
apache2_2.2.15-4.diff.gz
  to main/a/apache2/apache2_2.2.15-4.diff.gz
apache2_2.2.15-4.dsc
  to main/a/apache2/apache2_2.2.15-4.dsc
apache2_2.2.15-4_i386.deb
  to main/a/apache2/apache2_2.2.15-4_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 576105@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefan Fritsch <sf@debian.org> (supplier of updated apache2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 20 Apr 2010 23:11:09 +0200
Source: apache2
Binary: apache2.2-common apache2.2-bin apache2-mpm-worker apache2-mpm-prefork apache2-mpm-event apache2-mpm-itk apache2-utils apache2-suexec apache2-suexec-custom apache2 apache2-doc apache2-prefork-dev apache2-threaded-dev apache2-dbg
Architecture: source all i386
Version: 2.2.15-4
Distribution: unstable
Urgency: low
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Changed-By: Stefan Fritsch <sf@debian.org>
Description: 
 apache2    - Apache HTTP Server metapackage
 apache2-dbg - Apache debugging symbols
 apache2-doc - Apache HTTP Server documentation
 apache2-mpm-event - Apache HTTP Server - event driven model
 apache2-mpm-itk - multiuser MPM for Apache 2.2
 apache2-mpm-prefork - Apache HTTP Server - traditional non-threaded model
 apache2-mpm-worker - Apache HTTP Server - high speed threaded model
 apache2-prefork-dev - Apache development headers - non-threaded MPM
 apache2-suexec - Standard suexec program for Apache 2 mod_suexec
 apache2-suexec-custom - Configurable suexec program for Apache 2 mod_suexec
 apache2-threaded-dev - Apache development headers - threaded MPM
 apache2-utils - utility programs for webservers
 apache2.2-bin - Apache HTTP Server common binary files
 apache2.2-common - Apache HTTP Server common files
Closes: 576089 576105 576572 577239
Changes: 
 apache2 (2.2.15-4) unstable; urgency=low
 .
   * Move definition of other_vhosts_access.log to new config file
     /etc/apache2/conf.d/other-vhosts-access-log, but disable it
     if it has been disabled by the admin. Closes: #576572. LP: #507616
   * Comment out the contents of mods-available/proxy.conf, as it just
     is a nuisance for use of apache2 as a reverse proxy, which is much
     more common than the use as forward proxy. Extend the comments
     in the file.
   * Change defaults or add example configs for some modules:
     status.conf:
       - enable ExtendedStatus by default
       - enable ProxyStatus by default
       - document SeeRequestTail directive
     proxy_ftp.conf:
       - set 'ProxyFtpDirCharset UTF-8' by default
     ldap.conf:
       - enable /ldap-status page, allow it from localhost by default
     proxy_balancer.conf:
       - add (disabled) example for /balancer-manager page
     ssl.conf:
       - document SSLStrictSNIVHostCheck directive
   * Add symlink from apachectl to apache2ctl to be more compatible with
     upstream. Apache httpd 1.3 hasn't been in Debian for some time.
   * Simplify logrotate script. Closes: #576105
   * Remove empty directory /usr/lib/debug/usr/sbin in mpm packages.
     Closes: #576089
   * Fix apxs2 to work with perl 5.12rc3. Closes: #577239
   * Add source/format file to make lintian happy.
Checksums-Sha1: 
 d979e66b11370acff045a3d19bb8ef119d3b7277 1796 apache2_2.2.15-4.dsc
 82907f10cf7d7fb7724505e1fd9164dde580df51 201882 apache2_2.2.15-4.diff.gz
 a2ee34ff32d408ecc7a079cd6f11b309170c5f7d 2300054 apache2-doc_2.2.15-4_all.deb
 edb4e2a6822b6139e78af54586912a9acede4292 304564 apache2.2-common_2.2.15-4_i386.deb
 d97e798202c5901f4026132f2806f4436d856d33 1322356 apache2.2-bin_2.2.15-4_i386.deb
 8244fb02d8a8638a09ba8f872619803917fa25b8 2224 apache2-mpm-worker_2.2.15-4_i386.deb
 6b35af20677a4862e5936d293f350cad2583e4ee 2276 apache2-mpm-prefork_2.2.15-4_i386.deb
 08b53efcb6092ea8c0c4a03fe687941b937079f8 2254 apache2-mpm-event_2.2.15-4_i386.deb
 3fd0726f14b85457e5661496856810c934865351 2282 apache2-mpm-itk_2.2.15-4_i386.deb
 47fe715534bb871be7dc20f63b32448a2d06f06d 159196 apache2-utils_2.2.15-4_i386.deb
 0de34b232bbaac6e9ac6e9755e04897902219581 96762 apache2-suexec_2.2.15-4_i386.deb
 245f1cb6f8a3946857a683e85c9ec27d5f5b53e4 98360 apache2-suexec-custom_2.2.15-4_i386.deb
 f1ed4f96f13dfa9c4981bf2378570fe2413a37b9 1380 apache2_2.2.15-4_i386.deb
 ce0d8fa3a4b246920adaaf730b08b8732c381baf 137138 apache2-prefork-dev_2.2.15-4_i386.deb
 2e473752e4a81781797134c04b55b30e69d0139d 138278 apache2-threaded-dev_2.2.15-4_i386.deb
 21908f95709f21e92be76eb6d3d3895e84460ba4 2685726 apache2-dbg_2.2.15-4_i386.deb
Checksums-Sha256: 
 ed2eb0690e988aecdd7ec7fd52a076128de17294f3f1f08f2aa7398fc881e847 1796 apache2_2.2.15-4.dsc
 0d657f40d4f7d44a5c7e44e24f4c0148bd9a959a2b8548a11fe7db5d55955cec 201882 apache2_2.2.15-4.diff.gz
 71390131aa62dbce770320a6359b83373c2ef7e23b348c9bed02f45953ad1373 2300054 apache2-doc_2.2.15-4_all.deb
 6c5587351dce05955a2143fbfd45854c8c81ce30d6cb8f14a4329ec746b4cd36 304564 apache2.2-common_2.2.15-4_i386.deb
 160e98e890d078704a14586c659035caab93ed8059d22f1b22801674fabf0ea8 1322356 apache2.2-bin_2.2.15-4_i386.deb
 ddc2aea6a5ed511262b23efa21f3a938d5c1248a7d021e7a9eca81427d143404 2224 apache2-mpm-worker_2.2.15-4_i386.deb
 8d977e2faf4ed2b0c84c545b224fe89d35017ee595387a1a3db20637ec8dbc5d 2276 apache2-mpm-prefork_2.2.15-4_i386.deb
 fb72f7f719271eb98820336657d04d095edce239d78ec582237654a5cfa6d510 2254 apache2-mpm-event_2.2.15-4_i386.deb
 8ea6899be214b3e8cfe52c45aba22ac98c6652a4fd628daa2a042fd9fec63764 2282 apache2-mpm-itk_2.2.15-4_i386.deb
 0317f29d1963518dd13f2110f59a73fead552b7dee1c74d8897a1d802c321f47 159196 apache2-utils_2.2.15-4_i386.deb
 975d688f3cee40fffc6bef6754d9b9ee48b06401791fea3c7e5ffb50262707a3 96762 apache2-suexec_2.2.15-4_i386.deb
 15fd98ef5457ebf93e278d866cca6ef72784c8d2ac0a3ceaf396deb040437d7c 98360 apache2-suexec-custom_2.2.15-4_i386.deb
 67548066ef9dda1084d0b81e57f680916c0a917459b1adc7e93c49b0636c586e 1380 apache2_2.2.15-4_i386.deb
 1103b7c1a54900b5e457ca8dd80031ba9a82ffd211467c91b090162cd6ccae74 137138 apache2-prefork-dev_2.2.15-4_i386.deb
 577e157092bca0a42197a992771e7c694ed8e450d5c25c60c1f47d4706f3bc66 138278 apache2-threaded-dev_2.2.15-4_i386.deb
 eb4a5148e343e616504dab18495d571767be7ef975e733540c38a9931b96df23 2685726 apache2-dbg_2.2.15-4_i386.deb
Files: 
 19491596e93f601fecb02d458cfd7014 1796 httpd optional apache2_2.2.15-4.dsc
 8f7c7f9a6c6d5f9eab44ac3be561d49e 201882 httpd optional apache2_2.2.15-4.diff.gz
 81ef7e3849c03b9da9ea2969f72689cc 2300054 doc optional apache2-doc_2.2.15-4_all.deb
 263ee28f90b3912a2337574c381c8407 304564 httpd optional apache2.2-common_2.2.15-4_i386.deb
 29d899c359f6842e02613f0ed26ff5d9 1322356 httpd optional apache2.2-bin_2.2.15-4_i386.deb
 87abe5237601f1511f6a64778cc449a0 2224 httpd optional apache2-mpm-worker_2.2.15-4_i386.deb
 b778a6d23aeaee39042906aa78dce9f8 2276 httpd optional apache2-mpm-prefork_2.2.15-4_i386.deb
 aa7fd50c328cb325c1087b492590843e 2254 httpd optional apache2-mpm-event_2.2.15-4_i386.deb
 4da37922cb756eea50a5fcececd4079d 2282 httpd extra apache2-mpm-itk_2.2.15-4_i386.deb
 6671d799c6d540c882a6b871ae31087a 159196 httpd optional apache2-utils_2.2.15-4_i386.deb
 cea5198a33417430226037999f37865c 96762 httpd optional apache2-suexec_2.2.15-4_i386.deb
 78404a6a4f804bff40968c911710b3fd 98360 httpd extra apache2-suexec-custom_2.2.15-4_i386.deb
 ad52592f6f70f6ab607e96ae71cc8bea 1380 httpd optional apache2_2.2.15-4_i386.deb
 a976cdbe42e7452cef5ed0a50c3a32e4 137138 httpd extra apache2-prefork-dev_2.2.15-4_i386.deb
 607035479aad5aabfc68268323a3f00f 138278 httpd extra apache2-threaded-dev_2.2.15-4_i386.deb
 c32a9c03bd4a899cef2151d86dd2f278 2685726 debug extra apache2-dbg_2.2.15-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFLzhqibxelr8HyTqQRAtU/AJ4nvMGYPDJY40CQn8uIkbfSJoNLbgCgyza5
g8naStIWvatx3o0+AustkM0=
=P/m9
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: