Subversion Repositories configs

Rev

Rev 3 | Rev 33 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3 Rev 8
Line 46... Line 46...
46
 
46
 
47
start()
47
start()
48
{
48
{
49
	ret=0
49
	ret=0
50
	# TODO do we want to separate out already active groups only?
50
	# TODO do we want to separate out already active groups only?
51
	VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix="  "}' 2> /dev/null`
51
	VGSLIST=`$VGS --noheadings -o name --ignoreskippedcluster --config 'log{command_names=0 prefix="  "}' 2> /dev/null`
52
	for vg in $VGSLIST
52
	for vg in $VGSLIST
53
	do
53
	do
54
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y --config 'log{command_names=0 prefix="  "}' $vg || ret=$?
54
	    action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y --ignoreskippedcluster --config 'log{command_names=0 prefix="  "}' $vg || ret=$?
55
	done
55
	done
56
 
56
 
57
	return $ret
57
	return $ret
58
}
58
}
59
 
59
 
Line 64... Line 64...
64
	# TODO do we want to separate out already active groups only?
64
	# TODO do we want to separate out already active groups only?
65
	if test "$WARN" = "1"; then
65
	if test "$WARN" = "1"; then
66
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
66
	   echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
67
	   return 1
67
	   return 1
68
	fi
68
	fi
69
	VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix="  "}' 2> /dev/null`
69
	VGSLIST=`$VGS --noheadings -o name --ignoreskippedcluster --config 'log{command_names=0 prefix="  "}' 2> /dev/null`
70
	for vg in $VGSLIST
70
	for vg in $VGSLIST
71
	do
71
	do
72
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n --config 'log{command_names=0 prefix="  "}' $vg || ret=$?
72
	    action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n --ignoreskippedcluster --config 'log{command_names=0 prefix="  "}' $vg || ret=$?
73
	done
73
	done
74
	return $ret
74
	return $ret
75
}
75
}
76
 
76
 
77
rtrn=1
77
rtrn=1