Enable debug in syslog

[root@stroj etc]# cp /etc/syslog.conf /etc/syslog.conf.120904

[root@stroj etc]# vi /etc/syslog.conf
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console

# Log anything (except mail) of level info or higher.
# Don’t log private authentication messages!
*.info;*.debug;mail.none;authpriv.none;cron.none /var/log/messages

[root@stroj etc]# vi /etc/syslog.conf
[root@stroj etc]# service syslogd status
syslogd: unrecognized service
[root@stroj etc]# service syslog status
syslogd (pid 1750) is running…
klogd (pid 1753) is running…
[root@stroj etc]# service syslog restart
Shutting down kernel logger: [ OK ]
Shutting down system logger: [ OK ]
Starting system logger: [ OK ]
Starting kernel logger: [ OK ]
[root@stroj etc]#
[root@stroj etc]# service syslog status
syslogd (pid 666) is running…
klogd (pid 669) is running…

Jan D.
Jan D.

"The only real security that a man will have in this world is a reserve of knowledge, experience, and ability."

Articles: 673