diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2011-12-16 11:42:56 +0000 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2011-12-16 11:42:56 +0000 |
commit | 32e53e506d57b1e473c95455dc18e50bbdd88231 (patch) | |
tree | 5a3584f3844d126dae9c5010acb2c38fe4f9b857 /scripts/lvm2_monitoring_init_rhel4 | |
parent | c6958856f8f72f4aadbbfb675c65e237d546c0b7 (diff) | |
download | lvm2-32e53e506d57b1e473c95455dc18e50bbdd88231.tar.gz lvm2-32e53e506d57b1e473c95455dc18e50bbdd88231.tar.xz lvm2-32e53e506d57b1e473c95455dc18e50bbdd88231.zip |
Use also normalized output for vgchange command in lvm2-monitor init script.
Diffstat (limited to 'scripts/lvm2_monitoring_init_rhel4')
-rw-r--r-- | scripts/lvm2_monitoring_init_rhel4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lvm2_monitoring_init_rhel4 b/scripts/lvm2_monitoring_init_rhel4 index 33a2f742..aded8d40 100644 --- a/scripts/lvm2_monitoring_init_rhel4 +++ b/scripts/lvm2_monitoring_init_rhel4 @@ -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 } |