Bug#476958: exim4 logrotate do not restart exim

Klaus Ethgen Klaus at Ethgen.de
Sun Apr 20 11:42:53 UTC 2008


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

Package: exim4-base
Version: 4.63-17
Severity: normal

On one of my hosts sometimes I get the message from it that exim holds
the deleted file /var/log/exim4/mainlog.1 open. So it seems for me that
it is not gracefully restart at the end of logrotate.

So please do the following to not log messages to a deleted file.

- --- exim4-base.orig	2007-12-10 20:26:47.000000000 +0100
+++ exim4-base	2008-04-20 13:36:21.000000000 +0200
@@ -6,6 +6,10 @@
 	delaycompress
 	notifempty
 	create 640 Debian-exim adm
+        sharedscripts
+        postrotate
+            [ -f '/var/run/exim4/exim.pid' ] && /etc/init.d/exim restart || :
+        endscript
 }
 
 /var/log/exim4/paniclog {
@@ -16,5 +20,9 @@
 	delaycompress
 	notifempty
 	create 640 Debian-exim adm
+        sharedscripts
+        postrotate
+            [ -f '/var/run/exim4/exim.pid' ] && /etc/init.d/exim restart || :
+        endscript
 }
 

- -- Package-specific info:
Exim version 4.63 #1 built 20-Jan-2007 10:40:39
Copyright (c) University of Cambridge 2006
Berkeley DB: Sleepycat Software: Berkeley DB 4.3.29: (September  6, 2005)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
Configuration file is /var/lib/exim4/config.autogenerated

- -- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (800, 'stable'), (700, 'testing'), (600, 'unstable'), (60, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.4.36.2
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) (ignored: LC_ALL set to de_DE)

Versions of packages exim4-base depends on:
ii  adduser                3.102             Add and remove users and groups
ii  cron                   3.0pl1-100        management of regular background p
ii  debconf [debconf-2.0]  1.5.20            Debian configuration management sy
ii  exim4-config [exim4-co 4.63-17           configuration for the exim MTA (v4
ii  libc6                  2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii  libdb4.3               4.3.29-8          Berkeley v4.3 Database Libraries [
ii  lsb-base               3.1-23.2etch1     Linux Standard Base 3.1 init scrip
ii  netbase                4.29              Basic TCP/IP networking system

Versions of packages exim4-base recommends:
ii  psmisc                        22.3-1     Utilities that use the proc filesy

- -- debconf information:
  exim4/purge_spool: false
  exim4-base/drec:
  exim4/move_exim3_spool: false

- -- 
Klaus Ethgen                            http://www.ethgen.de/
pub  2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <Klaus at Ethgen.de>
Fingerprint: D7 67 71 C4 99 A6 D4 FE  EA 40 30 57 3C 88 26 2B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSAssO5+OKpjRpO3lAQKfJAgAhZhgrrG+MTXYXhIyTkRtzffV+XSwN17x
w9KgV0SayXLazaWeLzR0Pb+7gwzPVYca9+/so4rCBvK7IQguFvmJYX87iiigCuHp
CHPhtau5y8UscMzxAF991YKRXdk48HBlHpUcF4JW0IsTNguKKaKR7gXnC/uSKLg7
+HQ8xEskYUE8M/v/tj7vJaD6dBfa9Iu7p5Q0lq6JFtDbra9O3qiN3L32hfDElaMq
T5WthyuEWmiXBlzHrARTzm7yP/XrVuLQHvFGLYcg/WKUumIeNNv5l+DrD7Rx9Mk0
8IG5sZ+oZbZy5yDGPUe+i+S191R51cRq2LET2dYFjJlKY807Ea0ctA==
=SltX
-----END PGP SIGNATURE-----





More information about the Pkg-exim4-maintainers mailing list