[syslog-ng] couple install questions

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Tue Jul 18 21:52:59 CEST 2006


On Tue, 18 Jul 2006 13:36:00 EDT, Nick Baronian said:
> I have a RedHat Ent.4 box I want to put syslog-ng on.  Should I remove
> syslogd (sysklogd) first?

No.  Careful planning will avoid installing one on top of the other, and
you want the old syslog around Just In Case.
 
>                           If so how do I get syslog-ng to handle the
> cron (vixie) and initscripts?

# cd /etc/init.d
# cp syslog syslog-ng
# chkconfig syslog off

Modify syslog-ng as per attached patch.

# chkconfig syslog-ng on

Set up your syslog-ng.conf for your environment.

# /etc/init.d/syslog-ng start

You may need to disable at least some parts of logrotate if you use
stuff like:

destination d_spol { file("/logs/$HOST/$YEAR/$MONTH/spooler-$YEAR-$MONTH$DAY"); };

since that rotates itself free of charge.

To back it out:

# service syslog-ng stop
# chkconfig syslog-ng off
# chkconfig syslog on
# service syslog start

> what happens with syslogd.  I built glib-2.12.0 & eventlog-0.2.4 and

Might be easier to just use the RHEL 4.0 glib2-2.4.7 packages.

Patch follows...

diff -u syslog syslog-ng
--- syslog      2005-01-04 12:25:00.000000000 -0500
+++ syslog-ng   2004-07-19 11:27:53.000000000 -0400
@@ -14,14 +14,14 @@
 # Source function library.
 . /etc/init.d/functions
 
-[ -f /sbin/syslogd ] || exit 0
+[ -f /usr/local/sbin/syslog-ng ] || exit 0
 [ -f /sbin/klogd ] || exit 0
 
 # Source config
-if [ -f /etc/sysconfig/syslog ] ; then
-       . /etc/sysconfig/syslog
+if [ -f /etc/sysconfig/syslog-ng ] ; then
+       . /etc/sysconfig/syslog-ng
 else
-       SYSLOGD_OPTIONS="-m 0"
+       SYSLOGD_OPTIONS=""
        KLOGD_OPTIONS="-2"
 fi
 
@@ -31,7 +31,7 @@
 
 start() {
        echo -n $"Starting system logger: "
-       daemon syslogd $SYSLOGD_OPTIONS
+       daemon /usr/local/sbin/syslog-ng $SYSLOGD_OPTIONS
        RETVAL=$?
        echo
        echo -n $"Starting kernel logger: "

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 226 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20060718/ec3016ab/attachment.pgp


More information about the syslog-ng mailing list