Configuring Logging Services

Managing the logging service is quite straightforward. The syslogd process reads the /etc/syslog.conf file each time it starts up. All you have to do is change the file, as you deem fit, and restart the process. As mentioned earlier, you’ll make sure any files, hosts, or users you have specified already exist. For testing, any users you’ve specified have to be logged in via a session that can receive (and display) log messages.

You could terminate the syslogd process with the kill or pkill command, but that’s more force than you need. By design, daemon processes will restart when they receive a signal called HUP (short for hang-up). Upon restart, these processes reread their configuration files, if they have one, ...

Get OCA Oracle Solaris 11 System Administration Exam Guide (Exam 1Z0-821) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.