]> git.pld-linux.org Git - packages/lvm2.git/blame - pldize_lvm2_monitor.patch
- added 'without cman' bcond, so clvmd can be built with openais support and
[packages/lvm2.git] / pldize_lvm2_monitor.patch
CommitLineData
adcd8121
ER
1--- LVM2.2.02.85/scripts/lvm2_monitoring_init_red_hat.in 2011-10-05 21:36:47.152774996 +0200
2+++ LVM2.2.02.95/scripts/lvm2_monitoring_init_red_hat.in 2012-04-18 18:11:44.000000000 +0300
b08139b7
SS
3@@ -1,3 +1,3 @@
4-#!/bin/bash
5+#!/bin/sh
6 #
7 # Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved.
adcd8121
ER
8@@ -46,12 +46,19 @@
9
10 start()
11 {
12- ret=0
13+ local ret=0
14 # TODO do we want to separate out already active groups only?
50f199e7 15 VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
b08139b7
SS
16 for vg in $VGSLIST
17 do
50f199e7 18- action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y --config 'log{command_names=0 prefix=" "}' $vg || ret=$?
adcd8121
ER
19+ msg_starting "Starting monitoring for VG $vg:"; busy
20+ $VGCHANGE --monitor y --poll y --config 'log{command_names=0 prefix=" "}' $vg
21+ ret=$?
22+ if [ $ret -ne 0 ]; then
23+ fail
24+ return $ret
25+ fi
26+ ok
b08139b7
SS
27 done
28
29 return $ret
adcd8121
ER
30@@ -60,7 +67,7 @@
31
32 stop()
33 {
34- ret=0
35+ local ret=0
36 # TODO do we want to separate out already active groups only?
37 if test "$WARN" = "1"; then
38 echo "Not stopping monitoring, this is a dangerous operation. Please use force-stop to override."
39@@ -69,7 +76,14 @@
50f199e7 40 VGSLIST=`$VGS --noheadings -o name --config 'log{command_names=0 prefix=" "}' 2> /dev/null`
b08139b7
SS
41 for vg in $VGSLIST
42 do
50f199e7 43- action "Stopping monitoring for VG $vg:" $VGCHANGE --monitor n --config 'log{command_names=0 prefix=" "}' $vg || ret=$?
adcd8121
ER
44+ msg_stopping "Stopping monitoring for VG $vg:"; busy
45+ $VGCHANGE --monitor n --config 'log{command_names=0 prefix=" "}' $vg
46+ ret=$?
47+ if [ $ret -ne 0 ]; then
48+ fail
49+ return $ret
50+ fi
51+ ok
b08139b7
SS
52 done
53 return $ret
54 }
ed05b207
ER
55--- LVM2.2.02.94/scripts/lvm2_monitoring_systemd_red_hat.service.in~ 2012-02-01 15:08:39.000000000 +0200
56+++ LVM2.2.02.94/scripts/lvm2_monitoring_systemd_red_hat.service.in 2012-03-29 00:12:31.886921407 +0300
57@@ -1,7 +1,7 @@
58 [Unit]
59 Description=Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
60 Requires=dm-event.socket
61-After=dm-event.socket fedora-storage-init.service fedora-storage-init-late.service
62+After=dm-event.socket pld-storage-init.service pld-storage-init-late.service
63 Before=local-fs.target
64 DefaultDependencies=no
65 Conflicts=shutdown.target
This page took 0.046704 seconds and 4 git commands to generate.