1 --- LVM2.2.02.67/scripts/clvmd_init_red_hat.in 2010-07-17 18:33:02.185014713 +0200
2 +++ LVM2.2.02.67/scripts/clvmd_init_red_hat.in 2010-07-17 18:59:14.831553676 +0200
3 @@ -64,9 +64,8 @@ rh_status_q() {
7 - echo -n "Starting $DAEMON: "
8 + msg_starting "$DAEMON"
9 $DAEMON $CLVMDOPTS || return $?
13 # Refresh local cache.
14 @@ -86,7 +85,7 @@ start()
16 ${lvm_vgscan} > /dev/null 2>&1
18 - action "Activating VG(s):" ${lvm_vgchange} -ayl $LVM_VGS || return $?
19 + run_cmd "Activating VG(s):" ${lvm_vgchange} -ayl $LVM_VGS || return $?
23 @@ -111,27 +110,23 @@ stop()
25 [ -z "$LVM_VGS" ] && LVM_VGS="$(clustered_vgs)"
26 if [ -n "$LVM_VGS" ]; then
27 - action "Deactivating clustered VG(s):" ${lvm_vgchange} -anl $LVM_VGS || return $?
28 + run_cmd "Deactivating clustered VG(s):" ${lvm_vgchange} -anl $LVM_VGS || return $?
31 - action "Signaling $DAEMON to exit" kill -TERM $(pidofproc $DAEMON) || return $?
32 + run_cmd "Signaling $DAEMON to exit" kill -TERM $(pidofproc $DAEMON) || return $?
34 # wait half second before we start the waiting loop or we will show
35 # the loop more time than really necessary
38 # clvmd could take some time to stop
39 - rh_status_q && action "Waiting for $DAEMON to exit:" wait_for_finish
40 + rh_status_q && run_cmd "Waiting for $DAEMON to exit:" wait_for_finish
43 - echo -n "$DAEMON failed to exit"
49 - echo -n "$DAEMON terminated"
56 @@ -141,7 +136,7 @@ stop()
60 - action "Reloading $DAEMON configuration: " $DAEMON -R || return $?
61 + run_cmd "Reloading $DAEMON configuration: " $DAEMON -R || return $?
65 @@ -152,7 +147,7 @@ restart() {
67 # Try to get clvmd to restart itself. This will preserve
69 - action "Restarting $DAEMON: " $DAEMON -S
70 + run_cmd "Restarting $DAEMON: " $DAEMON -S
72 # If that fails then do a normal stop & restart