Jump to content


Photo

Prevent cron from logging to /var/log/messages


  • Please log in to reply
1 reply to this topic

#1 2lowskilled

  • Member
  • 3 posts

0
Neutral

Posted 27 February 2014 - 00:35

Hi!


I've several cronjobs running on one of my boxes (ET4x00 @ openPLI 4.0) and they fill up my messages file in /var/log. (which isn't so nice :) )

 

this line in /etc/syslog.conf

 

*.*;auth,authpriv,cron.none -/var/log/messages 

 

should do the job. At least on my debian machine it does.

 

Of course i restarted /etc/init.d/syslog after saving the changes in the syslog.conf file.

 

Anybody an idea why this is not working?

Thanks a lot!

alex.


Edited by 2lowskilled, 27 February 2014 - 00:37.


Re: Prevent cron from logging to /var/log/messages #2 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 2 March 2014 - 20:15

The syslog we ship is a busybox flavour, it's very limited.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users