Date: Sat, 2 Oct 1999 23:59:36 -0500 From: river <river@theriver.nu> To: "'cjclark@home.com'" <cjclark@home.com>, river <river@theriver.nu> Cc: questions@FreeBSD.ORG Subject: RE: syslog and mailing logs Message-ID: <21DC5E98AE1FD311B1290020AFDB6C6E6460@DRIP>
next in thread | raw e-mail | index | archive | help
I.E in linux i can do the following with the log files:
/var/log/messages {
rotate 1
size=10k
mail user@company.com
errors user@company.com
postrotate
/usr/bin/killall -HUP syslogd
endscript
}
I need to be able to do this in BSD
-----Original Message-----
From: Crist J. Clark [mailto:cjc@cc942873-a.ewndsr1.nj.home.com]
Sent: Saturday, October 02, 1999 11:01 PM
To: river@theriver.nu
Cc: questions@FreeBSD.ORG
Subject: Re: syslog and mailing logs
river wrote,
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> where would I find info on mailing the logfiles when the cron runs for
> syslog.
> which conf file or whatever. i know how to do it in linux...but not
bsd...
I'm not sure what you are talking about here. 'When the cron runs for
syslog?' syslogd(8) runs completely independently of cron(8). There is
the program newsyslog(8) that is spawned from the default /etc/crontab
file with FreeBSD. All it does is rotate logfiles; it has not
facilities for mailing. Or are you talking about the periodic(8)
scripts that run from /etc/crontab? Much of what they do utilizes
information in various logfiles.
Could you be more specific about what you would like to do?
--
Crist J. Clark cjclark@home.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21DC5E98AE1FD311B1290020AFDB6C6E6460>
