diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2007-09-06 12:24:52 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2007-09-06 12:24:52 +0000 |
commit | a364570173a20cdad499631f572818839289dfe5 (patch) | |
tree | a12ac820ef556c2806da6c2c10cf282fa07fbdc2 /add-syslog | |
parent | c0fbd2fd8bab4f07883321d01f03bb8870cb42c4 (diff) | |
download | rpm-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
Diffstat (limited to 'add-syslog')
-rwxr-xr-x | add-syslog | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |