1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Use also normalized output for vgchange command in lvm2-monitor init script.

This commit is contained in:
Peter Rajnoha 2011-12-16 11:42:56 +00:00
parent c6958856f8
commit 32e53e506d
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ start()
VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
for vg in $VGSLIST
do
action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$?
action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y --config 'log{command_names=0 prefix=" "}' $vg || ret=$?
done
return $ret
@ -69,7 +69,7 @@ stop()
VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
for vg in $VGSLIST
do
action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n $vg || ret=$?
action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n --config 'log{command_names=0 prefix=" "}' $vg || ret=$?
done
return $ret
}

View File

@ -34,7 +34,7 @@ start()
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=$?
action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --config 'log{command_names=0 prefix=" "}' $vg || ret=$?
done
return $ret
@ -52,7 +52,7 @@ stop()
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=$?
action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n --config 'log{command_names=0 prefix=" "}' $vg || ret=$?
done
return $ret
}