syslog-ng: contrib file patch
Balazs Scheidler, Attached to this message is a patch that corrects the syslog-ng configuration file for Red Hat systems available in the contrib directory. It also creates two new files in the contrib directory: 1 - syslog-ng.sysconfig.RedHat (file to be copied to /etc/sysconfig/syslog-ng) 2 - syslog-ng.logrotate.RedHat (file to be copied to /etc/logrotate.d/syslog-ng) Regards, jpo -- José Pedro Oliveira mailto: jpo@di.uminho.pt * http://gsd.di.uminho.pt/~jpo diff -ruN syslog-ng-1.6.0rc2+20030418manual-original/contrib/syslog-ng.conf.RedHat syslog-ng-1.6.0rc2+20030418manual-modified/contrib/syslog-ng.conf.RedHat --- syslog-ng-1.6.0rc2+20030418manual-original/contrib/syslog-ng.conf.RedHat Thu Aug 22 15:05:39 2002 +++ syslog-ng-1.6.0rc2+20030418manual-modified/contrib/syslog-ng.conf.RedHat Fri Apr 18 19:48:52 2003 @@ -15,6 +15,11 @@ # Updated by Frank Crawford (<Frank.Crawford@ac3.com.au>) - 22 Aug 2002 # - use the log_prefix option as per Balazs Scheidler's email # +# Updated by Jose Pedro Oliveira (<jpo@di.uminho.pt>) - 05 Apr 2003 +# - corrected filters f_filter2 and f_filter6 +# these filters were only logging messages from one priority +# level and not messages with priorities greater or equal +# options { sync (0); time_reopen (10); @@ -38,14 +43,13 @@ destination d_mlal { usertty("*"); }; filter f_filter1 { facility(kern); }; -filter f_filter2 { level(info) and - not (facility(mail) - or facility(authpriv) or facility(cron)); }; +filter f_filter2 { level(info..emerg) and + not facility(mail,authpriv,cron); }; filter f_filter3 { facility(authpriv); }; filter f_filter4 { facility(mail); }; filter f_filter5 { level(emerg); }; filter f_filter6 { facility(uucp) or - (facility(news) and level(crit)); }; + (facility(news) and level(crit..emerg)); }; filter f_filter7 { facility(local7); }; filter f_filter8 { facility(cron); }; diff -ruN syslog-ng-1.6.0rc2+20030418manual-original/contrib/syslog-ng.logrotate.RedHat syslog-ng-1.6.0rc2+20030418manual-modified/contrib/syslog-ng.logrotate.RedHat --- syslog-ng-1.6.0rc2+20030418manual-original/contrib/syslog-ng.logrotate.RedHat Thu Jan 1 01:00:00 1970 +++ syslog-ng-1.6.0rc2+20030418manual-modified/contrib/syslog-ng.logrotate.RedHat Fri Apr 18 19:48:52 2003 @@ -0,0 +1,6 @@ +/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron { + sharedscripts + postrotate + /bin/kill -HUP `cat /var/run/syslog-ng.pid 2> /dev/null` 2> /dev/null || true + endscript +} diff -ruN syslog-ng-1.6.0rc2+20030418manual-original/contrib/syslog-ng.sysconfig.RedHat syslog-ng-1.6.0rc2+20030418manual-modified/contrib/syslog-ng.sysconfig.RedHat --- syslog-ng-1.6.0rc2+20030418manual-original/contrib/syslog-ng.sysconfig.RedHat Thu Jan 1 01:00:00 1970 +++ syslog-ng-1.6.0rc2+20030418manual-modified/contrib/syslog-ng.sysconfig.RedHat Fri Apr 18 19:48:52 2003 @@ -0,0 +1,15 @@ +#---------------------------------------------------------------------- +# Options +#---------------------------------------------------------------------- +# -C - <chroot-dir> +# -d - Set "debug mode". Prints out various messages to aid in +# debugging and stops it from becoming a daemon. To activate +# debugging in the yacc parser, either use this option twice or +# combine with -v. +# -p - <filename> Write the current PID information to the specified +# file. +# -v - Enable verbose mode. Process will not become a daemon. Prints +# out fewer messages, compared to -d. +# -V - Print the version number. +#---------------------------------------------------------------------- +SYSLOGNG_OPTIONS=""
participants (1)
-
Jose Pedro Oliveira