• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

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

configure.ac: discard changes for old version number

Conflicts:
CHANGES
configure.ac

変更サマリ

差分

--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,10 @@
1-[XXX. XX XXXX] 2.1.3-1
1+[XXX. XX XXXX] 2.1.3-2
22 - Fix checkinig content (l7directord)
33 - Add duplicate log ID check in 'make distcheck'
44
5+[Jun. 16 2010] 2.1.3-1 Sugiura Jun
6+ - Fix Resource Agents for HBv2. (L7directord,L7vsd,SSLProxy)
7+
58 [Aug. 24 2009] 2.1.3-0 TATEISHI Katsuyuki
69 - Translate man files into English. (man)
710 - Fix purging sorryserver to respect reloaded configuration. (l7directord)
--- a/doc/heartbeat-ra/L7directord
+++ b/doc/heartbeat-ra/L7directord
@@ -112,7 +112,7 @@ l7directord_pkill(){
112112 ###############################
113113 isRunning(){
114114 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`
116116 return $RET
117117 }
118118
@@ -121,7 +121,7 @@ isRunning(){
121121 # Flush Virtual Service Method
122122 ###############################
123123 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`
125125 if [ $PS -eq 1 ]; then
126126 ocf_log info "[l7vsadm]: flush virtual service!"
127127 l7vsadm -C
--- a/doc/heartbeat-ra/L7vsd
+++ b/doc/heartbeat-ra/L7vsd
@@ -162,7 +162,7 @@ l7vsd_pkill(){
162162 ###############################
163163 isRunning(){
164164 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`
166166 return $RET
167167 }
168168
--- a/doc/heartbeat-ra/README
+++ b/doc/heartbeat-ra/README
@@ -18,3 +18,30 @@ http://sourceforge.jp/projects/ultramonkey-l7/docs/?category_id=964
1818
1919 You can use Resource Agents as they are. But you must edit at
2020 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+
--- a/doc/heartbeat-ra/SSLProxy
+++ b/doc/heartbeat-ra/SSLProxy
@@ -108,7 +108,7 @@ sslproxy_pkill(){
108108 ###############################
109109 isRunning(){
110110 RET=0
111- RET=`ps -ef | grep "/usr/sbin/sslproxy" | grep -v grep | wc -l`
111+ RET=`pgrep -fox '/usr/sbin/sslproxy .*' | wc -l`
112112 return $RET
113113 }
114114
--- a/init.d/l7vsd.sh
+++ b/init.d/l7vsd.sh
@@ -10,6 +10,10 @@
1010 # Released: January 2008
1111 # Licence: GNU General Public Licence
1212
13+
14+# If you change L7VSD_OPTIONS, you must edit Resource Agents.
15+# Please read "doc/heartbeat-ra/README" in detail.
16+#
1317 #L7VSD_OPTIONS="" # run as non-blocking mode
1418 L7VSD_OPTIONS="-b" # run as blocking mode
1519