
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
418
|
Chapter 12: System Log Management and Monitoring
3. Open /etc/sysconfig/syslog with the text editor of your choice, and change the
value of the
SYSLOG_DAEMON variable to syslog-ng.
4. Start Syslog-ng with the command
rcsyslog start.
5. As you can see, both syslogd and Syslog-ng are started by the same init script.
Therefore, do not make the change to /etc/sysconfig/syslog (in Step three) before
stopping the syslog service, otherwise you may end up with both syslogd and
Syslog-ng running, with unpredictable results.
Replacing syslogd with Syslog-ng on Fedora (Vidal’s RPMs)
Unlike with SUSE, in Fedora syslogd and Syslog-ng (as packaged by Seth Vidal) each
have their own startup script. When you install the libol and syslog-ng RPMs, the
post-installation script will automatically start Syslog-ng and enable its startup script,
but will leave syslogd both running and enabled.
Follow these steps to gracefully replace syslogd with Syslog-ng:
1. Stop syslogd with the command
/etc/init.d/syslog stop.
2. Restart Syslog-ng with the command
/etc/init.d/syslog-ng restart.
3. Disable syslogd with the command
chkconfig --del syslog.
You are now ready to configure Syslog-ng! You can skip ahead to “Setting Syslog-
ng’s Startup Parameters.”
Compiling and Installing Syslog-ng from Source Code
If you can’t