diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2007-09-06 12:19:38 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2007-09-06 12:19:38 +0000 |
commit | bfda151fb36845b2356c269d8c134f6d09c31f58 (patch) | |
tree | a3fb0935aed4c6b42eff1b09f4c4fbe3db5be6fa | |
parent | 7bfb89393300f8b779e4d0cb1cacd95770fa3c61 (diff) | |
download | rpm-helper-bfda151fb36845b2356c269d8c134f6d09c31f58.tar rpm-helper-bfda151fb36845b2356c269d8c134f6d09c31f58.tar.gz rpm-helper-bfda151fb36845b2356c269d8c134f6d09c31f58.tar.bz2 rpm-helper-bfda151fb36845b2356c269d8c134f6d09c31f58.tar.xz rpm-helper-bfda151fb36845b2356c269d8c134f6d09c31f58.zip |
s/syslog_facility/syslog_entry/
-rwxr-xr-x | add-syslog | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -72,16 +72,16 @@ if (!$facility) { die "no available free facility" unless $facility; } -add_sysklogd_facility($package, $source, $dest, $facility, $min, $max) +add_sysklogd_entry($package, $source, $dest, $facility, $min, $max) if -f '/etc/syslog.conf'; -add_syslogng_facility($package, $source, $dest, $facility, $min, $max) +add_syslogng_entry($package, $source, $dest, $facility, $min, $max) if -f '/etc/syslog-ng.conf'; # output used facility as feedback print $facility; -sub add_sysklogd_facility { +sub add_sysklogd_entry { my ($package, $source, $dest, $facility, $min, $max) = @_; # ensure source is configured @@ -144,7 +144,7 @@ sub add_sysklogd_facility { system(qw/service syslog condrestart/); } -sub add_syslogng_facility { +sub add_syslogng_entry { my ($package, $source, $dest, $facility, $min, $max) = @_; # read it first to check its content |