aboutsummaryrefslogtreecommitdiffstats
path: root/add-syslog
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2007-09-06 12:19:38 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2007-09-06 12:19:38 +0000
commitbfda151fb36845b2356c269d8c134f6d09c31f58 (patch)
treea3fb0935aed4c6b42eff1b09f4c4fbe3db5be6fa /add-syslog
parent7bfb89393300f8b779e4d0cb1cacd95770fa3c61 (diff)
downloadrpm-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/
Diffstat (limited to 'add-syslog')
-rwxr-xr-xadd-syslog8
1 files changed, 4 insertions, 4 deletions
diff --git a/add-syslog b/add-syslog
index c2fa775..a8564b2 100755
--- a/add-syslog
+++ b/add-syslog
@@ -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