aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2007-09-06 12:24:52 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2007-09-06 12:24:52 +0000
commita364570173a20cdad499631f572818839289dfe5 (patch)
treea12ac820ef556c2806da6c2c10cf282fa07fbdc2
parentc0fbd2fd8bab4f07883321d01f03bb8870cb42c4 (diff)
downloadrpm-helper-a364570173a20cdad499631f572818839289dfe5.tar
rpm-helper-a364570173a20cdad499631f572818839289dfe5.tar.gz
rpm-helper-a364570173a20cdad499631f572818839289dfe5.tar.bz2
rpm-helper-a364570173a20cdad499631f572818839289dfe5.tar.xz
rpm-helper-a364570173a20cdad499631f572818839289dfe5.zip
add markers for easier removal
-rwxr-xr-xadd-syslog6
1 files changed, 4 insertions, 2 deletions
diff --git a/add-syslog b/add-syslog
index a8564b2..092d50b 100755
--- a/add-syslog
+++ b/add-syslog
@@ -136,8 +136,9 @@ sub add_sysklogd_entry {
# append entry
open(my $out, '>>', '/etc/syslog.conf')
or die "Can't open /etc/syslog.conf for appending: $!";
- print $out "# Automatically added by $package installation\n";
+ print $out "# BEGIN: Automatically added by $package installation\n";
print $out $selector . ("\t" x $tabs) . '-' . $dest . "\n";
+ print $out "# END\n";
close($out);
# relaunch syslog
@@ -205,7 +206,7 @@ sub add_syslogng_entry {
open(my $out, '>>', '/etc/syslog-ng.conf')
or die "Can't open /etc/syslog-ng.conf for appending: $!";
- print $out "# Automatically added by $package installation\n";
+ print $out "# BEGIN: Automatically added by $package installation\n";
if (!$source_id) {
$source_id = 's_' . $package;
print $out "source $source_id { unix-stream('$source'); };\n";
@@ -226,6 +227,7 @@ sub add_syslogng_entry {
" filter($facility_id);" .
" filter($level_id);" .
" destination($destination_id); };\n";
+ print $out "# END\n";
close($out);
# relaunch syslog-ng