Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a server wich will be on a network as a backup server. For most of the time it will be idle, so I'd like the disks to be spun down. I'm using Debian woody, and by defult it runs exim every 15 minutes using a cron job. This causes text to be written to auth.log and syslog.
I cannot remove the cron job because I want local mail to be delivered from debconf etc. I could set the delay to something like a day, but that woudln't erase the problem.
I'm not very familiar with the syslog.conf syntax, so I'm asking for help.
Can I change to another MTA that wouldn't have this "feature" or how can I have these messages not be written in to the log. I would like other cron and auth messages to be written. Just not these.
Thanks in advance. You can find more info about this project in the wiki under Installing_woody
Uuh.. Maybe I wasn't clear. The problem isn't the mail. I don't mind mail. I mind that when exim checks the queue every 15 minutes using cron, I get a logmessage, wich forces the harddisk to spin up. That bothers me.
and I'd like to hide them, they are useless to me. The little program, vnstat, on the other hand is great, I'm not going to sacrifice it . My dream situation is to only have interesting stuff written in syslog - worthwhile information on every row.
I haven't figured out yet how to hide the above CRON messages in syslog, so if you have a clue, throw in a line. So far I've only tried adding ">>/dev/null 2>&1" to /etc/cron.d/vnstat where the CRON job is located at. It didn't seem to do anything (assuming cron automatically reloads cron.d files when their moddate changes).
Actually that is a message from cron, so you need to edit syslog.conf and redirect cron stuff somewhere else. Problem is, I don't know how not to redirect *everything* that comes from cron, just one thing. :-(
this means that all ur messages from cron will redirect to /var/log/cron
so to change ur log create a different file anywhere say
/test/cron
then redirect ur output there by
cron.* /test/cron
also restart syslog service to make changes take effect now.
the problem u might face here is that these log mesag ahave a entry in logrotate.conf which keep a chweck on the size of the logs.
so u may need to do some editing
correct me if i am wrong here that even if ur backup server is running all the time,and even if it is doing no work at all
then too i think the disks do keep on spinning all the time
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.