Re: [Fedora] no entries in /var/log/* - FC3

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

 



Hi,

I did run the kill command by hand and after that, messages are loged. This works for about one or two days, after that, logging stopps again.

So wher to go next?

Regards

Götz

replies-lists-redhat@xxxxxxxxxxxxxxxxxxxxx wrote:
do a copy/paste and run the kill -HUP command by hand (take off the
part at the end of the line that dumps the output to /dev/null). that
should help you understand if that's the issue, and if so give hints on
why it's failing.



- Rick



---------- Original Message ----------

From: Götz Reinicke <goetz.reinicke@xxxxxxxxxxxxxxx>
To: Fedora List <fedora-list@xxxxxxxxxx>
Date: Wednesday, March 09, 2005 04:06:48 PM +0100
Subject: Re: [Fedora] no entries in /var/log/* - FC3

Everything looks like your discribed and all files ar in the right
places. And yes, everything is running by root :-)

Because everything is from the original FC3 rpms I#m that confused; a
second server with nearly the same sysrem config (SMP, FC3,..) has no
problem at all...

Regards

replies-lists-redhat@xxxxxxxxxxxxxxxxxxxxx wrote:


that means that it's failing when trying to run the postrotate script
in that (syslog) file.

look carefully at the lines there (/etc/logrotate.d/syslog). it
should look (something) like the following:


... list of files to be rotated... { sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true endscript }


where the quotes before "cat" and after "null" are (single) back-ticks (also the line is wrapped after the "2>" in my output above).

make certain that the pathing is correct for everything, and that
your "kill" binary is there (if it isn't other things should have
broken too, but it never hurts to check).

last, but not least, you are running this (both manually and via
cron) as "root", correct?


---------- Original Message ----------


From: Götz Reinicke <goetz.reinicke@xxxxxxxxxxxxxxx>
To: Fedora List <fedora-list@xxxxxxxxxx>
Date: Wednesday, March 09, 2005 03:31:15 PM +0100
Subject: Re: [Fedora] no entries in /var/log/* - FC3

Hi,

thanks for the hint, I did a manuall (logrotate -f -v
/etc/logrotate.conf) logrotate and get an error


error: error running shared postrotate script for /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron

But what causes this error?

syslogd is still running and the pid-file is in the right place

Regards



replies-lists-redhat@xxxxxxxxxxxxxxxxxxxxx wrote:



i would suggest running logrotate manually (you'll probably need to
use the -f flag to make it actually run), and see if you get any
errors or warnings. that *might* give you some ideas or hints

i'm assuming that you've confirmed that syslogd is (still) running
after  logrotate runs. if it is, do a "kill -HUP" on it. also,
check that it's pid file is in the location indicated by the
logroate.d/syslog script. if syslogd stops running when logrotate
is run, then running logrotate manually should give you a hint of
what the problem is.

---------- Original Message ----------



From: Götz Reinicke <goetz.reinicke@xxxxxxxxxxxxxxx>
To: For users of Fedora Core releases <fedora-list@xxxxxxxxxx>
Date: Wednesday, March 09, 2005 02:48:05 PM +0100
Subject: Re: [Fedora] no entries in /var/log/* - FC3



Ashley M. Kirchner wrote:



Götz Reinicke wrote:




After a /etc/init.d/syslog restart the logs are written until
they  have to be rotated, then no new entries are loged (The
empty logfile  is touched). :-((

Any ideas? What to check?


Make sure /etc/logrotate.d/syslog is actually restarting syslog
as  well.  Mine looks like this:

<...>

Mine /etc/logrotate.d/syslog looks exactly the same.

any more ideas?

Regards
--
Götz Reinicke
IT Koordinator - IT OfficeNet

Tel. +49 (0) 7141 - 969 420
Fax  +49 (0) 7141 - 969 55 420
goetz.reinicke@xxxxxxxxxxxxxxx

Filmakademie Baden-Württemberg
Mathildenstr. 20
71638 Ludwigsburg
www.filmakademie.de

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list


---------- End Original Message ----------


-- Götz Reinicke IT Koordinator - IT OfficeNet

Tel. +49 (0) 7141 - 969 420
Fax  +49 (0) 7141 - 969 55 420
goetz.reinicke@xxxxxxxxxxxxxxx

Filmakademie Baden-Württemberg
Mathildenstr. 20
71638 Ludwigsburg
www.filmakademie.de

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list


---------- End Original Message ----------


-- Götz Reinicke IT Koordinator - IT OfficeNet

Tel. +49 (0) 7141 - 969 420
Fax  +49 (0) 7141 - 969 55 420
goetz.reinicke@xxxxxxxxxxxxxxx

Filmakademie Baden-Württemberg
Mathildenstr. 20
71638 Ludwigsburg
www.filmakademie.de

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list


---------- End Original Message ----------


-- Götz Reinicke IT Koordinator - IT OfficeNet

Tel. +49 (0) 7141 - 969 420
Fax  +49 (0) 7141 - 969 55 420
goetz.reinicke@xxxxxxxxxxxxxxx

Filmakademie Baden-Württemberg
Mathildenstr. 20
71638 Ludwigsburg
www.filmakademie.de


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux