]>
Commit | Line | Data |
---|---|---|
dab0ac18 JB |
1 | --- LVM2.2.02.181/scripts/blk_availability_init_red_hat.in.orig 2018-08-02 08:18:51.000000000 +0200 |
2 | +++ LVM2.2.02.181/scripts/blk_availability_init_red_hat.in 2018-09-07 20:43:11.884952342 +0200 | |
4cb4934b JK |
3 | @@ -1,4 +1,4 @@ |
4 | -#!/bin/bash | |
5 | +#!/bin/sh | |
6 | # | |
dab0ac18 | 7 | # Copyright (C) 2012-2017 Red Hat, Inc. All rights reserved. |
4cb4934b | 8 | # |
dab0ac18 JB |
9 | @@ -29,7 +29,7 @@ |
10 | # Short-Description: Availability of block devices | |
11 | ### END INIT INFO | |
12 | ||
13 | -. /etc/init.d/functions | |
14 | +. /etc/rc.d/init.d/functions | |
15 | ||
16 | script=blkdeactivate | |
17 | ||
18 | @@ -41,16 +41,20 @@ | |
4cb4934b JK |
19 | case "$1" in |
20 | start) | |
dab0ac18 | 21 | touch "$LOCK_FILE" |
4cb4934b JK |
22 | + exit 0 |
23 | ;; | |
24 | ||
25 | stop) | |
dab0ac18 JB |
26 | - action "Stopping block device availability:" "$sbindir/$script" $options |
27 | + run_cmd "Stopping block device availability:" "$sbindir/$script" $options | |
28 | rm -f "$LOCK_FILE" | |
4cb4934b JK |
29 | + exit 0 |
30 | ;; | |
31 | ||
32 | status) | |
33 | + exit 0 | |
34 | ;; | |
35 | *) | |
36 | - echo $"Usage: $0 {start|stop|status}" | |
37 | + msg_usage "$0 {start|stop|status}" | |
38 | + exit 3 | |
39 | ;; | |
40 | esac | |
dab0ac18 JB |
41 | --- LVM2.2.02.181/scripts/lvm2_monitoring_init_red_hat.in.orig 2018-08-02 08:18:51.000000000 +0200 |
42 | +++ LVM2.2.02.181/scripts/lvm2_monitoring_init_red_hat.in 2018-09-07 21:12:38.944932161 +0200 | |
4cb4934b JK |
43 | @@ -1,4 +1,4 @@ |
44 | -#!/bin/bash | |
45 | +#!/bin/sh | |
46 | # | |
47 | # Copyright (C) 2007-2009 Red Hat, Inc. All rights reserved. | |
48 | # | |
dab0ac18 | 49 | @@ -60,7 +60,14 @@ |
0442bdaf | 50 | VGSLIST=`$VGS --noheadings -o name --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' 2> /dev/null` |
4cb4934b JK |
51 | for vg in $VGSLIST |
52 | do | |
dab0ac18 JB |
53 | - action "Starting monitoring for VG $vg:" "$VGCHANGE" --monitor y --poll y --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' $vg || ret=$? |
54 | + msg_starting "monitoring for VG $vg:"; busy | |
55 | + "$VGCHANGE" --monitor y --poll y --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' $vg | |
0442bdaf JB |
56 | + ret=$? |
57 | + if [ $ret -ne 0 ]; then | |
58 | + fail | |
59 | + return $ret | |
60 | + fi | |
61 | + ok | |
4cb4934b JK |
62 | done |
63 | ||
64 | return $ret | |
dab0ac18 | 65 | @@ -78,7 +85,14 @@ |
0442bdaf | 66 | VGSLIST=`$VGS --noheadings -o name --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' 2> /dev/null` |
4cb4934b JK |
67 | for vg in $VGSLIST |
68 | do | |
dab0ac18 JB |
69 | - action "Stopping monitoring for VG $vg:" "$VGCHANGE" --monitor n --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' $vg || ret=$? |
70 | + msg_stopping "monitoring for VG $vg:"; busy | |
71 | + "$VGCHANGE" --monitor n --ignoreskippedcluster --config 'log{command_names=0 prefix=" "}' $vg | |
0442bdaf JB |
72 | + ret=$? |
73 | + if [ $ret -ne 0 ]; then | |
74 | + fail | |
75 | + return $ret | |
76 | + fi | |
77 | + ok | |
4cb4934b JK |
78 | done |
79 | return $ret | |
80 | } | |
dab0ac18 JB |
81 | @@ -127,7 +141,7 @@ |
82 | ;; | |
83 | ||
84 | *) | |
85 | - echo $"Usage: $0 {start|stop|restart|status|force-stop}" | |
86 | + msg_usage "$0 {start|stop|restart|status|force-stop}" | |
87 | ;; | |
88 | esac | |
89 | ||
90 | --- LVM2.2.02.181/scripts/blk_availability_systemd_red_hat.service.in.orig 2018-09-07 20:29:42.941628244 +0200 | |
91 | +++ LVM2.2.02.181/scripts/blk_availability_systemd_red_hat.service.in 2018-09-07 21:28:09.498254872 +0200 | |
4bdf1a9f JK |
92 | @@ -6,7 +6,7 @@ |
93 | ||
94 | [Service] | |
95 | Type=oneshot | |
96 | -ExecStart=/usr/bin/true | |
97 | +ExecStart=/bin/true | |
dab0ac18 | 98 | ExecStop=@SBINDIR@/blkdeactivate -u -l wholevg -m disablequeueing -r wait |
4bdf1a9f JK |
99 | RemainAfterExit=yes |
100 | ||
354815fd JP |
101 | --- LVM2.2.02.186/scripts/lvm2_lvmpolld_init_red_hat.in.orig 2019-09-23 21:36:48.727591492 +0200 |
102 | +++ LVM2.2.02.186/scripts/lvm2_lvmpolld_init_red_hat.in 2019-09-23 21:39:51.961644240 +0200 | |
103 | @@ -1,4 +1,4 @@ | |
104 | -#!/bin/bash | |
105 | +#!/bin/sh | |
106 | # | |
107 | # Copyright (C) 2015 Red Hat, Inc. All rights reserved. | |
108 | # | |
109 | @@ -33,7 +33,7 @@ | |
110 | # Also avoids unsolicited termination due to external factors. | |
111 | ### END INIT INFO | |
112 | ||
113 | -. /etc/init.d/functions | |
114 | +. /etc/rc.d/init.d/functions | |
115 | ||
116 | DAEMON=lvmpolld | |
117 | ||
118 | @@ -53,14 +53,15 @@ | |
119 | start() | |
120 | { | |
121 | ret=0 | |
122 | - action "Starting LVM poll daemon:" "$sbindir/$DAEMON" || ret=$? | |
123 | + run_cmd "Starting LVM poll daemon:" "$sbindir/$DAEMON" || ret=$? | |
124 | return $ret | |
125 | } | |
126 | ||
127 | stop() | |
128 | { | |
129 | ret=0 | |
130 | - action "Signaling LVM poll daemon to exit:" killproc -p "$PID_FILE" "$DAEMON" -TERM || ret=$? | |
131 | + msg_stopping "LVM poll daemon" | |
132 | + killproc -p "$PID_FILE" "$DAEMON" -TERM || ret=$? | |
133 | return "$ret" | |
134 | } | |
135 | ||
136 | @@ -80,9 +81,9 @@ | |
137 | stop | |
138 | rtrn=$? | |
139 | [ $rtrn = 0 ] && rm -f "$LOCK_FILE" | |
140 | ;; | |
141 | ||
142 | - restart) | |
143 | + restart|force-reload) | |
144 | if stop | |
145 | then | |
146 | start | |
147 | @@ -105,7 +107,7 @@ | |
148 | ;; | |
149 | ||
150 | *) | |
151 | - echo $"Usage: $0 {start|stop|force-stop|restart|condrestart|try-restart|status}" | |
152 | + msg_usage "$0 {start|stop|force-stop|restart|force-reload|condrestart|try-restart|status}" | |
153 | ;; | |
154 | esac | |
155 |