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:
parent
c6958856f8
commit
32e53e506d
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user