aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2008-03-14 15:16:57 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2008-03-14 15:16:57 +0000
commit9f2fd4d57e5ff5511b3879f407c797a53e12f351 (patch)
tree313510351dc38e8119e3cafe831755c4289f15b0
parentbb64e10c37f4964791fb33f017e7cc5593269d66 (diff)
downloadrpm-helper-9f2fd4d57e5ff5511b3879f407c797a53e12f351.tar
rpm-helper-9f2fd4d57e5ff5511b3879f407c797a53e12f351.tar.gz
rpm-helper-9f2fd4d57e5ff5511b3879f407c797a53e12f351.tar.bz2
rpm-helper-9f2fd4d57e5ff5511b3879f407c797a53e12f351.tar.xz
rpm-helper-9f2fd4d57e5ff5511b3879f407c797a53e12f351.zip
silent service reload, to avoid error message in output
-rwxr-xr-xadd-syslog4
1 files changed, 2 insertions, 2 deletions
diff --git a/add-syslog b/add-syslog
index 1effdce..773530b 100755
--- a/add-syslog
+++ b/add-syslog
@@ -142,7 +142,7 @@ sub add_sysklogd_entry {
close($out);
# relaunch syslog
- system(qw/service syslog condrestart/);
+ system('service syslog condrestart 2>&1 >/dev/null');
}
sub add_syslogng_entry {
@@ -231,5 +231,5 @@ sub add_syslogng_entry {
close($out);
# relaunch syslog-ng
- system(qw/service syslog-ng condrestart/);
+ system('service syslog-ng condrestart 2>&1 >/dev/null');
}