1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-07-30 23:41:55 +03:00

Fix lvm2-monitor init script to use normalized output when using vgs.

This commit is contained in:
Peter Rajnoha
2011-12-07 12:29:41 +00:00
parent d098140177
commit 0644371f09
3 changed files with 5 additions and 4 deletions

View File

@ -31,7 +31,7 @@ start()
{
ret=0
# TODO do we want to separate out already active groups only?
VGS=`vgs --noheadings -o name 2> /dev/null`
VGS=`vgs --noheadings -o name --config 'log{command_names=0 prefix=" "}' 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 2> /dev/null`
VGS=`vgs --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
for vg in $VGS
do
action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?