CentOS6

From Leaky
Revision as of 21:22, 1 August 2014 by Leaky (talk | contribs) (Added rndc info)
Jump to: navigation, search

Adjust rate-limiting for rsyslog

These instructions are for rsyslog 5.8.10 that comes with CentOS 6

/etc/rsyslog.conf

# Disable rate-limiting completely
$SystemLogRateLimitInterval 0

or

# Set the rate limiting to 500 messages in 5s
$SystemLogRateLimitInterval 5
$SystemLogRateLimitBurst 500

Disable mingetty on extra tty

Edit /etc/init/start-ttys.conf so that

env ACTIVE_CONSOLES=/dev/tty[1-6]

becomes

env ACTIVE_CONSOLES=/dev/tty[1-2]

And then to stop the ones that are already running without rebooting:

# initctl stop tty TTY=/dev/tty6
tty stop/waiting

Then repeat for the other ttys.

named 'rndc status' not working

[root@server6122 ~]# rndc status
rndc: connect failed: 127.0.0.1#953: connection refused

Check:

  • Portreserve service may interfere with bind
 # service portreserve stop; chkconfig portreserve off
  • Permissions on /etc/rndc.key - group should be named, not root!
 # ls -l /etc/rndc.key
 -rw-r----- 1 root named 77 Jan 13  2014 /etc/rndc.key