[PLUG] Removing MARK from /var/log/messages

King Beowulf kingbeowulf at gmail.com
Sat Dec 27 18:24:32 UTC 2014


On 12/27/2014 08:47 AM, Rich Shepard wrote:
>    I've never understood the purpose of having -- MARK -- every 20 minutes in
> /var/log/messages. Years ago I was able to remove it by adding '-m' to the
> command to start klogd. This no longer works on slackware-14.1. Advice and
> solutions to eliminating those lines wanted.
> 
> Rich
> 

Rich,

According to "man sysklogd" that switch still exists.  You should be
able to edit /etc/rc.d/rc.syslog accordingly:

syslogd_start() {
  if [ -x /usr/sbin/syslogd -a -x /usr/sbin/klogd ]; then
    echo -n "Starting sysklogd daemons:  "
    echo -n "/usr/sbin/syslogd -m 0"
    /usr/sbin/syslogd -m 0

.....

I think you have to set "-m 0" explicitly and not just "-m"
For some reason I never thought of doing this myself.  Testing now.

(I also note that "man syslogd" fails due to a symlink error)

-Ed



More information about the PLUG mailing list