View previous topic :: View next topic |
Author |
Message |
Rhiz()m3 n00b


Joined: 31 Aug 2002 Posts: 41
|
Posted: Tue Nov 12, 2002 10:44 pm Post subject: sysklogd, vcron, and 0 byte /var/log/messages -> help.. |
|
|
i started /etc/init.d/vcron for the first time yesterday. my /var/log/messages got rotated at 12:00 last night and now the new messages is 0 byte. it appears that /var/log/messages is no longer being written to. perhaps this is because vcron wants to mail notifications to the owner of vcron or the value of MAILTO="". my logging daemon (sysklogd) is still running. can some one tell me whats going on? _________________ --------> Why don't you bastards start wearing human skins?<-------- |
|
Back to top |
|
 |
Rhiz()m3 n00b


Joined: 31 Aug 2002 Posts: 41
|
Posted: Tue Nov 12, 2002 10:47 pm Post subject: Here is my crontab |
|
|
############## /etc/crontab ####################
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
# for vixie cron
# remember to give cron a sighup when updating this file
#
# $Header: /home/cvsroot/gentoo-x86/sys-apps/vcron/files/crontab,v 1.2 2002/04/27 21:46:45 bangert Exp $
#
#
*/15 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
0 0 * * * root rm -f /var/spool/cron/lastrun/cron.daily
0 0 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
0 0 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
############################################## _________________ --------> Why don't you bastards start wearing human skins?<-------- |
|
Back to top |
|
 |
rac Bodhisattva


Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Tue Nov 12, 2002 10:52 pm Post subject: |
|
|
Maybe these two things are unrelated - did you just install logrotate? Does restarting the logging daemon change anything? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
 |
Rhiz()m3 n00b


Joined: 31 Aug 2002 Posts: 41
|
Posted: Tue Nov 12, 2002 11:51 pm Post subject: OK |
|
|
Ok, I have more information. First I have two logging daemons running syslog and klogd. By looking at /etc/init.d/sysklogd, i discovered that this script launches both. When I force rotate the logs /var/log/syslog gets zipped up and recreated and starts logging again. /var/log/messages however does not. I suppose I could "ln -s syslog messages", but I would still like to know first, why messages is not being logged to. The only new element I have added to the equation since it worked was having vcron run with the /etc/crontab that I provided earlier. Anyone have any ideas? _________________ --------> Why don't you bastards start wearing human skins?<-------- |
|
Back to top |
|
 |
|