---- Changes since 1.380 ----
On Debian systems, use a syslog restart to tell it to re-open log files, as a HUP signal is not reliable.
On Fedora 8, use rsyslog by default instead of syslog.
+---- Changes since 1.430 ----
+Added support for rsyslogd, as seen by default on Debian 5.0.
--- /dev/null
+pri_all=1
+syslogd=/usr/sbin/rsyslogd
+m4_conf=0
+syslog_conf=/etc/rsyslog.conf
+pri_dir=1
+pid_file=/var/run/rsyslogd.pid
+facilities=auth authpriv cron daemon kern lpr mail mark news syslog user uucp local0 local1 local2 local3 local4 local5 local6 local7
+m4_path=
+sync=1
+pipe=1
+tags=0
+lines=20
+socket=0
+start_cmd=/etc/init.d/rsyslog start
+restart_cmd=/etc/init.d/rsyslog reload
+signal_cmd=/etc/init.d/rsyslog restart ; /etc/init.d/klogd restart
+compressed=1
+others=1
%access = &get_module_acl();
# get_config()
+# Parses the syslog configuration file into an array ref of hash refs, one
+# for each log file or destination
sub get_config
{
local $lnum = 0;
last if ($line !~ s/\\$//);
}
}
- if ($line =~ /^(#*)\s*([^#\s]+\.\S+)\s+(\S+)$/ ||
- $line =~ /^(#*)\s*([^#\s]+\.\S+)\s+(\|.*)$/) {
+ if ($line =~ /^\$(\S+)\s*(\S*)/) {
+ # rsyslog special directive - ignored for now
+ }
+ elsif ($line =~ /^(#*)\s*([^#\s]+\.\S+)\s+(\S+)$/ ||
+ $line =~ /^(#*)\s*([^#\s]+\.\S+)\s+(\|.*)$/) {
+ # Regular log destination
local $act = $3;
local $log = { 'active' => !$1,
'sel' => [ split(/;/, $2) ],
push(@rv, $log);
}
elsif ($line =~ /^(#?)!(\S+)$/) {
+ # Start of tagged section, as seen on BSD
push(@rv, { 'tag' => $2,
'index' => scalar(@rv),
'line' => $lnum,