Openunix.eu


Centos (6)

Using chkconfig to manage services

chkconfig --list rsync #shows status of rsync for current runlevel
chkconfig postfix off #switches off postfix autostart
chkconfig --level 35 rsyslog on #switches on syslog for levels 3 and 5

Setting up syslog

vi /etc/rsyslog.conf

# Server side:
$ModLoad imudp #UDP logging support
$UDPServerRun 514
$ModLoad imtcp #TCP logging support
$InputTCPServerRun 514

#Client side:
*.* @@myserver.net:514 # logs to myserver.net on port 514 via TCP
*.* @myserver.net:514 # logs to myserver.net on port 514 via UDP

 

Powered by NetBSD. Running on a toaster.