Pages

Saturday, December 21, 2013

SYSLOG(Print system messages to console and /var/logmessages)

To print system messages to both /var/log/messgaes and to console do the following
# vi /etc/syslog.conf

Add the following lines
 
kern.*                                                  /dev/console 
*.info;mail,authpriv,cron,kern.none                     /dev/console

save the file and restart the service
 
 
# /etc/init.d/syslogd restart

No comments:

Post a Comment