From e7ddf4168d2c0283efe4764e89901bdca8838f93 Mon Sep 17 00:00:00 2001 From: Petr Rockai Date: Thu, 28 Jun 2007 17:33:44 +0000 Subject: Make warnings go to stderr. Change log_warn to that effect, log_print continues to send messages to stdout. --- scripts/lvm2_monitoring_init_rhel4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/lvm2_monitoring_init_rhel4') diff --git a/scripts/lvm2_monitoring_init_rhel4 b/scripts/lvm2_monitoring_init_rhel4 index c9649569..0a42f552 100644 --- a/scripts/lvm2_monitoring_init_rhel4 +++ b/scripts/lvm2_monitoring_init_rhel4 @@ -31,7 +31,7 @@ start() { ret=0 # TODO do we want to separate out already active groups only? - VGS=`vgs --noheadings -o name` + VGS=`vgs --noheadings -o name 2> /dev/null` for vg in $VGS do action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y $vg || ret=$? @@ -49,7 +49,7 @@ stop() echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override." return 1 fi - VGS=`vgs --noheadings -o name` + VGS=`vgs --noheadings -o name 2> /dev/null` for vg in $VGS do action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$? -- cgit