Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155892 - app-admin/logrotate-3.7.2 does not bother about /var/log/messages but should
Summary: app-admin/logrotate-3.7.2 does not bother about /var/log/messages but should
Status: RESOLVED DUPLICATE of bug 139654
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-21 15:16 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2006-11-21 21:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DEMAINE Benoît-Pierre, aka DoubleHP 2006-11-21 15:16:44 UTC
I installed app-admin/logrotate-3.7.2 on day "20061116", and rebooted computer several times. My /var/log/messages is still 89M, and first lines are date about July 13rd 2006 ...

root@moon_gen:~# grep -ni cron /var/log/messages |wc
  14430  180311 1566433
root@moon_gen:~# grep -ni logrot /var/log/messages |wc
      0       0       0
root@moon_gen:~#

so, cron run, but does not mention logrotate. Is that a cron bug ? not the worst for me today.

Weekly cron ran sunday, as for many people, I left my box over a full night to make sure cron daily would run normal way, and my /var have not been touched at all !

Lets try the manual way:
root@moon_gen:~# /etc/cron.daily/logrotate.cron
error: stat of /var/log/ntp.log failed: No such file or directory
root@moon_gen:~#

- why does cron not mention about logrotate at all in logs ?
- why would logrotate fail on ntp ?
- could "non existing file" be a fatal error for logrotate ???
- how can cron not report problems in /var/log/messages ?

Yes I do have ntp installed; several bug have been open (and closed without fix) about this.

I dont mind about ntp; I want logrotate to actually rotate logs, whatever happens, all logs, *especially existing ones* ! Who cares about non existing things ?

[ebuild   R   ] app-admin/logrotate-3.7.2  USE="(-selinux)" 32 kB

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

Portage 2.1.2_rc1-r7 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.5-r0, 2.6.18-gentoo-r2-Gentoo-moon_10 i686)
=================================================================
System uname: 2.6.18-gentoo-r2-Gentoo-moon_10 i686 mobile AMD Athlon(tm) 4 Processor
Gentoo Base System version 1.12.6
Last Sync: Thu, 16 Nov 2006 08:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.ISO-8859-15"
LC_ALL="en_GB.ISO-8859-15"
LINGUAS="en fr"
MAKEOPTS="-j2"
PKGDIR="/tmp"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/big"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/doublehp/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dfx X a52 aac aalib ace acpi aiglx aim alsa amr amuled ao aoss apache2 apic arts asf audiofile bash-completion berkdb bidi binfilter bitmap-fonts bl bluetooth bonjour bootsplash branding bzip2 cdda cdparanoia cdr cgi cjk cli cmov compress cpio cpudetection cracklib crypt cups curl cx8 dbus de dg dga directfb djvu dlloader dmi dmx doc dri dts dv dvb dvd dvdr dvdread dvi dynamic eds elibc_glibc emboss encode esd ethereal evo examples exif fam fbcon ffmpeg firefox flac flash fortran fping fpu freetype fxsr gadu gdbm ggi gif gnome gnutls gpm gs gstreamer gtk hal httpd i8x0 ical iconv icq idea idn ieee1394 imagemagick imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 irc isdnlog jabber jack java javascript jpeg jpeg2k kde kernel_linux lcms libcaca libg++ libnotify linguas_en linguas_fr lirc lirc_devices_usbirboy listentcp live lj lm_sensors logrotate lzo mad matrox mca mce meanwhile mikmod mmx mmxext mng modplug mono motif mozcalendar mp3 mpeg mplayer msn msr mtrr mtyhtv ncurses network nls no-htdocs nptl nptlonly nsplugin offensive ogg opengl oss pae pam pat pcre pdf perl pge php__ png posix ppds pppd pse pse36 python qq qt3 qt4 quicktime rar readline real reflection rpm rss rtc rtsp samba screen sdl sensord sep server session silc skey skins sms sndfile speex spell spl sse ssl startup-notification stream subtitles svg svga swat symlink syslog tcpd tga theora threads tiff transmitter truetype truetype-fonts tsc type1-fonts udev unicode urandom usb userland_GNU uuencode v4l v4l2 vcd video_cards_apm video_cards_chips video_cards_cirrus video_cards_fbdev video_cards_i128 video_cards_i810 video_cards_mga video_cards_nv video_cards_s3 video_cards_s3virge video_cards_sis video_cards_tdfx video_cards_tga video_cards_trident video_cards_v4l video_cards_vesa video_cards_vga video_cards_via vidix vim vlm vme vorbis win32codecs wma wmf wxwindows x264 xanim xcomposite xinerama xorg xosd xscreensaver xv xvid xvmc yahoo zeroconf zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-11-21 21:40:39 UTC
(In reply to comment #0)
> - why would logrotate fail on ntp ?

Because it's missing. And because the logrotate entry installed by ntp is missing missingok directive.


*** This bug has been marked as a duplicate of 139654 ***