UltraMonkey-L7 branches for my development
リビジョン | 4b42962c732bd89595513fb54dd12226ee59a136 (tree) |
---|---|
日時 | 2010-10-05 16:11:07 |
作者 | TATEISHI Katsuyuki <kt@whee...> |
コミッター | TATEISHI Katsuyuki |
Merge commit 'origin/hb-ra-processcheck-fix'
* CHANGES: merged
Conflicts:
CHANGES
configure.ac
@@ -1,7 +1,10 @@ | ||
1 | -[XXX. XX XXXX] 2.1.3-1 | |
1 | +[XXX. XX XXXX] 2.1.3-2 | |
2 | 2 | - Fix checkinig content (l7directord) |
3 | 3 | - Add duplicate log ID check in 'make distcheck' |
4 | 4 | |
5 | +[Jun. 16 2010] 2.1.3-1 Sugiura Jun | |
6 | + - Fix Resource Agents for HBv2. (L7directord,L7vsd,SSLProxy) | |
7 | + | |
5 | 8 | [Aug. 24 2009] 2.1.3-0 TATEISHI Katsuyuki |
6 | 9 | - Translate man files into English. (man) |
7 | 10 | - Fix purging sorryserver to respect reloaded configuration. (l7directord) |
@@ -112,7 +112,7 @@ l7directord_pkill(){ | ||
112 | 112 | ############################### |
113 | 113 | isRunning(){ |
114 | 114 | RET=0 |
115 | - RET=`ps -ef | grep "/usr/sbin/l7directord start" | grep -v grep | wc -l` | |
115 | + RET=`pgrep -fox "/usr/sbin/l7directord start" | wc -l` | |
116 | 116 | return $RET |
117 | 117 | } |
118 | 118 |
@@ -121,7 +121,7 @@ isRunning(){ | ||
121 | 121 | # Flush Virtual Service Method |
122 | 122 | ############################### |
123 | 123 | l7vsd_flush(){ |
124 | - PS=`ps -ef | grep /usr/sbin/l7vsd | grep -v grep | wc -l` | |
124 | + PS=`pgrep -fox "/usr/sbin/l7vsd -b" | wc -l` | |
125 | 125 | if [ $PS -eq 1 ]; then |
126 | 126 | ocf_log info "[l7vsadm]: flush virtual service!" |
127 | 127 | l7vsadm -C |
@@ -162,7 +162,7 @@ l7vsd_pkill(){ | ||
162 | 162 | ############################### |
163 | 163 | isRunning(){ |
164 | 164 | RET=0 |
165 | - RET=`ps -ef | grep /usr/sbin/l7vsd | grep -v grep | wc -l` | |
165 | + RET=`pgrep -fox "/usr/sbin/l7vsd -b" | wc -l` | |
166 | 166 | return $RET |
167 | 167 | } |
168 | 168 |
@@ -18,3 +18,30 @@ http://sourceforge.jp/projects/ultramonkey-l7/docs/?category_id=964 | ||
18 | 18 | |
19 | 19 | You can use Resource Agents as they are. But you must edit at |
20 | 20 | least IP addresses in configuration files. |
21 | + | |
22 | +When you edit the init script "l7vsd" as follows, you must edit | |
23 | +the Resource Agent "L7vsd" and "L7directord" as described later. | |
24 | + | |
25 | + [init script "l7vsd"] | |
26 | + ----------------------------------------------------------------- | |
27 | + <default> L7VSD_OPTIONS="-b" # run as blocking mode | |
28 | + | |
29 | + <after edit> L7VSD_OPTIONS="" # run as non-blocking mode | |
30 | + ----------------------------------------------------------------- | |
31 | + | |
32 | + [Resource Agent "L7directord"] | |
33 | + at the function "l7vsd_flush()" | |
34 | + ----------------------------------------------------------------- | |
35 | + <default> PS=`pgrep -fox "/usr/sbin/l7vsd -b" | wc -l` | |
36 | + | |
37 | + <after edit> PS=`pgrep -fox "/usr/sbin/l7vsd" | wc -l` | |
38 | + ----------------------------------------------------------------- | |
39 | + | |
40 | + [Resource Agent "L7vsd"] | |
41 | + at the function "isRunning()" | |
42 | + ----------------------------------------------------------------- | |
43 | + <default> RET=`pgrep -fox "/usr/sbin/l7vsd -b" | wc -l` | |
44 | + | |
45 | + <after edit> RET=`pgrep -fox "/usr/sbin/l7vsd" | wc -l` | |
46 | + ----------------------------------------------------------------- | |
47 | + |
@@ -108,7 +108,7 @@ sslproxy_pkill(){ | ||
108 | 108 | ############################### |
109 | 109 | isRunning(){ |
110 | 110 | RET=0 |
111 | - RET=`ps -ef | grep "/usr/sbin/sslproxy" | grep -v grep | wc -l` | |
111 | + RET=`pgrep -fox '/usr/sbin/sslproxy .*' | wc -l` | |
112 | 112 | return $RET |
113 | 113 | } |
114 | 114 |
@@ -10,6 +10,10 @@ | ||
10 | 10 | # Released: January 2008 |
11 | 11 | # Licence: GNU General Public Licence |
12 | 12 | |
13 | + | |
14 | +# If you change L7VSD_OPTIONS, you must edit Resource Agents. | |
15 | +# Please read "doc/heartbeat-ra/README" in detail. | |
16 | +# | |
13 | 17 | #L7VSD_OPTIONS="" # run as non-blocking mode |
14 | 18 | L7VSD_OPTIONS="-b" # run as blocking mode |
15 | 19 |